jjzjj

reportDataSourceSales

全部标签

c# - 如何在 C# 中不显示 PrintDialog() 直接打印 rdlc 报告?

我有一个应用程序,我必须打印RDLC报告而不显示printDialog并使用应用程序中定义的默认指定打印机。下面是我的测试实现代码。Microsoft.Reporting.WinForms.ReportViewerreportViewerSales=newMicrosoft.Reporting.WinForms.ReportViewer();Microsoft.Reporting.WinForms.ReportDataSourcereportDataSourceSales=newMicrosoft.Reporting.WinForms.ReportDataSource();report