Print Page | Close Window

Bin/Tray Selection Ignored

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3190
Printed Date: 14 May 24 at 8:12PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Bin/Tray Selection Ignored
Posted By: vermillion
Subject: Bin/Tray Selection Ignored
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk