如下图:如何设置共多少页,而不是显示共document页打印代码: LocalReport report = new LocalReport();
report.ReportPath = Application.StartupPath + @"\RDLC\rptError.rdlc";
report.DataSources.Clear();
report.DataSources.Add(new ReportDataSource("dsError_dtErrorTop", ds.Tables[i]));
this.printDoc = new EMFStreamPrintDocument(report, "Error");
this.printDoc.PrinterSettings.Copies = short.Parse(li.Count.ToString());
this.printDoc.Print();
this.printDoc = null;
report.ReportPath = Application.StartupPath + @"\RDLC\rptError.rdlc";
report.DataSources.Clear();
report.DataSources.Add(new ReportDataSource("dsError_dtErrorTop", ds.Tables[i]));
this.printDoc = new EMFStreamPrintDocument(report, "Error");
this.printDoc.PrinterSettings.Copies = short.Parse(li.Count.ToString());
this.printDoc.Print();
this.printDoc = null;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货