Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to print multiple reports as a single batch

$
0
0

The following example demonstrates how to print several reports in a single batch, instead of sending one report at a time to the printer. Also, in this example, the Print dialog is invoked for the first report only, and the other reports are printed without any dialogs, but using the same print settings.

To print a report, use the PrintTool (the PrintTool.PrintDialog and PrintToolBase.Print methods). You'll also need to handle XtraReport's PrintingSystemBase.StartPrint event.

See Also:
- How to programmatically select a printer;
- How to hide the Printing status window;
- How to determine the settings of the selected printer when the OK button is pressed in the Printer dialog;
- How to dynamically select the paper source and set the printer resolution;
- How to programmatically print a specified range of report pages.

Question Comments

Added By: Andrej Bukin at: 12/15/2015 11:09:05 PM    

all 4 links on documentation are broken

Added By: Jannet (DevExpress Support) at: 12/16/2015 12:20:10 AM    Hello Andrej,
We greatly appreciate you pointing this out. I've corrected these links. Please check them out.Added By: dsk96m at: 5/31/2016 12:37:07 PM    This is not correct.  You have pt1.printdialog, but if a user clicks cancel, it still got on to the next step and loops through the reports and prints them.  How do you test if the user clicked cancel in the print dialog window.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>