Skip to main content
A newer version of this page is available. .

Print and Export without a Preview

Export

You can export a report on the server side and send the exported document back to the client.

Use one of the ExportTo… methods to export a report to the desired format. For more information, review the following help topic: Document Export Overview.

Print

To print a report, export it to PDF and send it to the browser. The browser invokes the built-in PDF viewer to open the PDF content. You can use the viewer’s Print command to print the document.

You can also send PDF content to a separate IFrame. In this case, the browser shows only the Print dialog and does not open a new PDF Viewer window.

Note

The complete sample project is available in the following DevExpress Examples repository on GitHub: How to print/export XtraReport in an ASP.NET WebForms application without showing a report preview.