can i print .rdlc report without using report viewer or any print preview dialog Box?
- 我想在没有“打印预览”或“打印机”对话框的情况下直接打印。 - 请指导我,我是C#中这类工作的新手。 -please为我提供了这项工作的代码,如果有的话。
答案 0 :(得分:1)
这对你有用, Printing a Local Report without Preview
How to directly print rdlc report without showing PrintDialog() in C#?
谢谢, 克里斯托
答案 1 :(得分:1)
LocalReport report = new LocalReport();
report.ReportEmbeddedResource = "Your.Reports.Path.rdlc";
report.DataSources.Add(new ReportDataSource("DataSet1", getYourDatasource()));
report.PrintToPrinter();
请参阅链接How to directly print rdlc report without showing PrintDialog() in C#?