Skip to content

DevExpress-Examples/reporting-asp-net-core-print-without-preview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Print and Export a Report in the ASP.NET Core Application without the Document Viewer

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

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.

NOTE: We don't recommend printing with an invisible iFrame element because not all browsers support it.

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.

For more information review the following help topic:

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Prints and exports a report in a browser without the Document Viewer.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5