Multiple print trays

Multiple print trays

Forum member · Jun 2, 2014
Hi Team Is it possible to create a print job that makes use of different print trays. E.g. I would like the first page to use a paper from one tray, the rest of the document from a different tray and then the last page from another tray. Anton

Re: Multiple print trays

Support · Jun 2, 2014
Hello Anton, Yes, it is possible. You can set the print options at the print job level using PrintJobPrintOptions class and at page level using PrintJobPagePrintOptions class. Here is the sample code: InputPdf pdf = new InputPdf("test.pdf"); Printer printer = new Printer("printer name"); PrintJob printJob = new PrintJob(printer, pdf); //set the appropriate tray index for the entire print job. printJob.PrintOptions.PaperSource = printer.PaperSources[3]; //for first page, override the default and set the desired tray index. printJob.Pages[0].PrintOptions.Inherit = false; printJob.Pages[0].PrintOptions.PaperSource = printer.PaperSources[2]; //for last page, override the default and set the desired tray index. printJob.Pages[pdf.Pages.Count - 1].PrintOptions.Inherit = false; printJob.Pages[pdf.Pages.Count - 1].PrintOptions.PaperSource = printer.PaperSources[1]; printJob.Print(); pdf.Dispose(); Thanks, ceTe Software Support Team.

Re: Multiple print trays

Forum member · Jun 3, 2014
Hi Team Thank s, this is exactly what I was looking for. Anton