Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
How to send a report to a print preview dialog?
posted

I have created a wonderful report with Infragistics.Documents.Report.Report.  I am able to save it to a PDF, XPS, and send it directly to a printer and it looks as wonderful as can be, but...  Others want to see it in a print preview dialog before printing.  How might one go about doing that?

Sam

Parents
  • 469350
    Offline posted

    Hi Sam,

    I assume you are just using the Print method on the report. Unfortunately, there's currently no PrintPreview method to allow you to send the report to a PrintPreview.Print always goes to a printer.

    But there is a way to draw the report onto a print surface yourself. There's a sample of this in the WinGrid SamplesExplorer project. The sample exports a grid to a report and then show a print preview, but the grid is not necessary, it will work for any report.

     

     

Reply Children