Pro Edition You can print a report from a web application without making your users preview it when you use the WebViewer in ActiveReports Professional Edition. In this article, I'll show you a couple of ways to print a report directly to the client printer. Important considerations:
- With the WebViewer, you can't send reports to the printer without displaying the Print dialog.
- The WebViewer control is available only in ActiveReports Professional Edition.
Printing with the Flash Viewer
To use the Flash viewer, add a WebViewer control to your web form and set its ViewerType property to FlashViewer. There are two ways to print a report using the Flash viewer:
- using the StartPrint property
- using client scripts
Expand the FlashViewerOptions, then the PrintOptions, and set theStartPrint property to True. This displays the system Print dialog when the Flash viewer loads in the browser so you can print the report without previewing it. For more details, see the following topics in the User Guide: Flash Viewer | Provide One-Touch Printing in the WebViewer (Professional) | ActiveReports Web Pro
Printing to PDF
To print using PDF, add a WebViewer control to your web form and set its ViewerType property to AcrobatReader.
Expand the PdfExportOptions and set the OnlyForPrint property to True. This displays the Adobe Acrobat Reader Print dialog when the viewer loads in the browser so you can print the report without viewing it in the Acrobat Reader. Important: When generating a PDF with a password using the Encrypt property, the OnlyForPrint property setting is invalid.