Scenario:
- We are sending a print job to the printer with multiple pages on the PrintJob object. All pages do not share the same paper source, so we want to confirm that the printing will be handled appropriately with the combination of DuplexMode.DuplexVertical and specific paper sources set on different pages.
Question:
- If we have the following scenario:
1 print job
4 pages on the print job
1st 3 pages set to print to Tray 1
4th page set to print to Tray 2
Duplex Mode for the entire print job is DuplexMode.DuplexVertical
- Will the print job perform duplexing on the first 3 pages and print the 4th page independently since it is printing from it's own tray?
- Is there a better way to achieve our desired result? (Which would be the first 3 pages printing duplex and the 4th printing on it's own individual page)
Thanks in advance!
DuplexMode with multiple paper sources
Re: DuplexMode with multiple paper sources
Support · May 7, 2014Hello,
Based on the scenario you mentioned above, PrintManager would duplex the first 3 pages out of tray 1 and print the fourth page out of tray 2. Here is the sample code:
InputPdf pdf = new InputPdf("DocumentA.pdf");
Printer printer = new Printer("PrinterName");
PrintJob printJobObj = new PrintJob(printer, pdf);
if (printer.Duplex)
{
printJobObj.PrintOptions.DuplexMode = DuplexMode.DuplexVertical;
}
printJobObj.PrintOptions.PaperSource = printer.PaperSources[2]; //tray 2
PrintJobPage page1 = printJobObj.Pages[3]; //tray 3
page1.PrintOptions.Inherit = false;
page1.PrintOptions.PaperSource = printer.PaperSources[3];
printJobObj.Print();
Thanks,
ceTe Software Support Team.