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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Bin/Tray Selection Ignored
  FAQ FAQ  Forum Search   Register Register  Login Login

Bin/Tray Selection Ignored

 Post Reply Post Reply
Author
Message
vermillion View Drop Down
Beginner
Beginner


Joined: 15 Oct 15
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote vermillion Quote  Post ReplyReply Direct Link To This Post Topic: Bin/Tray Selection Ignored
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store