I have a form in my application that contains one report viewer that embed rptPrint.rdlc using Dataset(dtsPrint.xsd).
here is my code:
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();
that binds perfectly in report viewer.
But i need the way that that binds the report as well as open a print dialog that prints the document
I have googled so much but no success. Is it possible to do ? if yes then how can i implement it??
Thanks in Advance