This commit is contained in:
gongxh
2022-05-30 09:27:46 +08:00
parent 847dffd9f1
commit 2a334e7d75
10 changed files with 334 additions and 12 deletions

View File

@@ -108,13 +108,25 @@ namespace CleanMachineHMI.FrmUserControl
private void kryptonButton1_Click(object sender, EventArgs e)
{
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport(this.kdtp_CreateStartTime.Value, this.kdtp_CreateEndTime.Value);
FastReport.Report report = new FastReport.Report();
report.Load("ReportMd\\operatorReport.frx");
report.RegisterData(list, "datas");
//report.Design();
report.Prepare();
report.Print();
var print = new frmPring();
try
{
print.Show();
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport(this.kdtp_CreateStartTime.Value, this.kdtp_CreateEndTime.Value);
FastReport.Report report = new FastReport.Report();
report.Load("ReportMd\\operatorReport.frx");
report.RegisterData(list, "datas");
//report.Design();
report.PrintSettings.ShowDialog = false;
report.Prepare();
report.Print();
}
finally
{
print.Close();
}
}
}
}