Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Bin/Tray Selection Ignored |
Post Reply |
Author | |
vermillion
Beginner Joined: 15 Oct 15 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 19 Oct 15 at 7:16PM |
I have been printing standard 8.5 x 11 PDFs successfully using the QuickPDF library, but I am having an issue now with bin/tray selection. My PDF is 11 x 14. I have some 11 x 17 paper loaded in Tray 1 of my printer. The GetPrinterBins method tells me that "Tray 1" is numbered 262. I use SetupCustomPrinter(customPrinter, 9, 262) to assign the bin, but every time it instead pulls from my tray loaded with 8.5 x 11 paper. Am I missing a step?
Here is the full code block. The value of printerTray is 262. string customPrinter = pdfLibrary.NewCustomPrinter(printerName); pdfLibrary.SetupCustomPrinter(customPrinter, 9, printerTray); if (pdfLibrary.PageWidth() > pdfLibrary.PageHeight()) { pdfLibrary.SetupCustomPrinter(customPrinter, 11, 2); //Make landscape. } else { pdfLibrary.SetupCustomPrinter(customPrinter, 11, 1); //Make portrait. } int options = pdfLibrary.PrintOptions(0, 0, fileName); int printStatus = pdfLibrary.PrintDocument(customPrinter, 1, pdfLibrary.PageCount(), options); Thanks, vermillion Edited by vermillion - 19 Oct 15 at 7:20PM |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store