C# 在Windows桌面应用程序中打印RDLC报告而不进行预览

C# 在Windows桌面应用程序中打印RDLC报告而不进行预览,c#,winforms,rdlc,C#,Winforms,Rdlc,我的应用程序中有一个表单,其中包含一个使用Dataset(dtsPrint.xsd)嵌入rptPrint.rdlc的报表查看器 这是我的密码: reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.ReportEmbeddedResource = "Test.Reports.rptPrint.rdlc"; reportViewer1.LocalReport.SubreportProcessing +=

我的应用程序中有一个表单,其中包含一个使用Dataset(dtsPrint.xsd)嵌入rptPrint.rdlc的报表查看器

这是我的密码:

reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.ReportEmbeddedResource = "Test.Reports.rptPrint.rdlc"; 
reportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SubreportProcessing);


Microsoft.Reporting.WinForms.ReportDataSource dataset = new Microsoft.Reporting.WinForms.ReportDataSource("dtsPrint", dtPrint); 
reportViewer1.LocalReport.DataSources.Add(dataset);
dataset.Value = dtPrint;

reportViewer1.LocalReport.Refresh();
reportViewer1.RefreshReport();
它在报表查看器中完美绑定

但我需要绑定报告的方式,以及打开打印文档的打印对话框

我在谷歌上搜索了这么多,但没有成功。有可能吗? 如果是,那么我如何实施它


提前感谢

请看一看:但是此报表也包含子报表…它会这样工作吗?是的,如果您为子报表处理添加处理程序以将子报表数据集正确绑定到数据表。