All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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 with the PdfExportOptions.ShowPrintDialogOnOpen option set to true and send it to the browser. The browser uses the built-in PDF viewer to open the PDF content and display the Print dialog.

You can also send PDF content to a separate IFrame, so that 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 MVC application without showing a report preview.