All docs
V20.2
21.1 (EAP/Beta)
20.2
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 in React Application

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 and Export a Report in a React Application without Displaying the Report.