Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 3.62 KB

File metadata and controls

48 lines (34 loc) · 3.62 KB

Reporting for ASP.NET MVC - How to print or export a report without showing a preview

This example demonstrates how to print or export a report in an ASP.NET MVC application without displaying this report's preview.

Report Print Dialog

Follow the steps below to print or export a report:

  • Call one of the report's ExportTo... methods to obtain an exported document.
  • Call the Controller.File method to convert the exported document into a FileContentResult object.

Follow the steps below to print a report:

  • Export the report to PDF.
  • Return the exported PDF file as an action result with the Content-Disposition header set to inline.
  • The returned PDF is opened by the browser's built-in PDF viewer. To avoid this, export the PDF to a separate iframe - only the print dialog is displayed.

Files to Review

More Examples

Does this example address your development requirements/objectives?

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