Coder Social home page Coder Social logo

devexpress-examples / reporting-print-export-report-without-showing-a-preview Goto Github PK

View Code? Open in Web Editor NEW
6.0 57.0 1.0 759 KB

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

License: Other

C# 34.68% HTML 15.25% ASP.NET 0.85% Visual Basic .NET 49.21%
reporting print export reporting-for-mvc

reporting-print-export-report-without-showing-a-preview's Introduction

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

reporting-print-export-report-without-showing-a-preview's People

Contributors

andreylepikhov avatar devexpressexamplebot avatar pollyndos avatar serge-andreyev avatar yaroslav-kuznetsov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

luisduar7e15

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.