DevExpress-Examples / reporting-react-print-without-preview

A simple React app with the ASP.NET Core backend that prints and exports a report in a browser without previewing it on a web page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reporting for React - Print and Export Without Displaying the Report

This example prints and exports a report in a browser without previewing it on a web page.

Screenshot

Print

On the server side, a controller performs the following actions:

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.

Files to Review

Documentation

More Examples

About

A simple React app with the ASP.NET Core backend that prints and exports a report in a browser without previewing it on a web page.

License:Other


Languages

Language:C# 59.4%Language:JavaScript 30.0%Language:HTML 10.6%