We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to silent print the report without using print dialog

The default print option available in the report viewer control shows a print dialog to choose the printer and other settings. The silent printing of report without rendering in preview and without displaying print dialog can be achieved by exporting the reports into PDF and using the PDF document for printing. The Syncfusion ReportWriter library allows to export the report to various file formats without rendering in preview. The following steps illustrates silent printing of a report.

  1. Initialize the ReportWriter and set the ReportPath and ProcessingMode properties that are required to process the report.
  2. Set the DataSources data collection input to the report.
  3. Invoke Save() to store the report stream and load the resultant stream to PdfDocumentView as shown in the following codes

 

C#

 

  1. Get the installed printer list and set the current printer to PrintDialog.
  2. Invoke the PrintDocument() method to print the report without displaying the print dialog options.

 

C#

 

Sample:

http://www.syncfusion.com/downloads/support/forum/136369/ze/SilentPrinting-96758534  

Article ID: Published Date: Last Revised Date: Platform: Control:
8628 03/27/2018 03/28/2018 WPF ReportViewer
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon