This example prints and exports a report in a browser without previewing it on a web page with a Document Viewer.
On the server side, a controller performs the following actions:
- creates a report
- exports the report to PDF
- sends the PDF file back to the client.
On the client-side, a user can do one of the following:
-
Print a report in a new tab. Click a button to call the client-side
window.Open(url, "_blank")
method to open a new window that contains a PDF file and print the window content. -
Print a report in iFrame. Click a button to load a PDF file in the
HTMLIFrameElement
and print its content.
Export
The user selects the format and clicks a button to send the format to the server-side controller. The controller calls the export method for the selected format and sends the file back to the browser.
- How to print and export DevExpress reports without previewing them on a web page in an ASP.NET Core Angular application
- How to Print and Export a Report in a React Application without Displaying the Report
- Reporting for ASP.NET MVC - How to print or export a report without showing a preview
- Reporting for ASP.NET WebForms - How to print or export a report without showing a preview
(you will be redirected to DevExpress.com to submit your response)