locked
How to print List<ReportViewer> when printing one of the reports on the list? RRS feed

  • Question

  • I Have List<ReportViewer> Reports and I display one of them on WindowsFormsHost. If I click print on ReportViewer and select the printer, how to apply this to other reports on the list?
    Wednesday, April 6, 2011 9:06 AM

All replies

  • In VS2010, there's a new event you can use called ReportViewerPrintingBegin. When that happens you can just print all the reports in your list (ReportViewer.LocalReport). See the following topic for code on how to print a report programmatically: http://msdn.microsoft.com/en-us/library/ms252091.aspx.
    Cephas Lin This posting is provided "AS IS" with no warranties.
    Wednesday, April 6, 2011 5:02 PM