Specify the Number of Copies to Print
This example demonstrates how you can specify the number of document copies to print.
To do this, assign a report instance to a ReportPrintTool, and handle the PrintingSystemBase.StartPrint event of a Print Tool’s PrintToolBase.PrintingSystem.
using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...
private void button1_Click(object sender, System.EventArgs e) {
ReportPrintTool printTool = new ReportPrintTool(new XtraReport1());
printTool.PrintingSystem.StartPrint += PrintingSystem_StartPrint;
printTool.Print();
}
void PrintingSystem_StartPrint(object sender, PrintDocumentEventArgs e) {
// Set the number of document copies to print.
e.PrintDocument.PrinterSettings.Copies = 3;
}