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!
![]() |
Select printer tray |
Post Reply ![]() |
Author | |
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 12 Jan 12 at 10:23AM |
Good morning.
I'm testing your demo dll. Now i have this problem........ I'm try to use a 2 drawers printer on my network. One is for A5 paper and the other is for A4 paper. I would like to know if is possible during printig (function PRINTDOCUMENT, to select the correct tray (in my case the 2nd .... A4) thank you in advance best regards |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
You can use NewCustomPrinter and SetupCustomPrinter to change certain print parameters.
Andrew.
|
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
thank you for your answer.
Can i found some vb.net example ???? thanks regards |
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
I understand now...... but
this is my code: QP.LoadFromFile(filename, "") CustomPrinter = QP.NewCustomPrinter("\\server name\printer name") QP.SetupCustomPrinter(CustomPrinter, 9, 5) PrintOption = QP.PrintOptions(0, 0, "Test") QP.PrintDocument(CustomPrinter, 1, 1, PrintOption) during printdocument i have an error. and if i look inside CustomPrinter the value is "3 customprinter is defined like string thanks Regards |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
QP.LoadFromFile("PrintDocumentTest.pdf", ""); int op = QP.PrintOptions(1, 0, "My QPL PrintJob"); string printer = QP.NewCustomPrinter(QP.GetDefaultPrinterName()); int ret; ret = QP.SetupCustomPrinter(printer, 6, 1); // Colour = Monochrome // see this link for other paper sizes. // http://www.quickpdflibrary.com/faq/what-paper-size-values-can-be-used-with-the-setupcustomprinter-function.php ret = QP.SetupCustomPrinter(printer, 9, 13); // PaperTray = DMPAPER_B5 ret = QP.PrintDocument(printer, 1, QP.PageCount(), op); |
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
thanks but here
Return dll.QuickPDFPrintDocument(instanceID, PrinterName, StartPage, EndPage, _ Options) i have an error. and printername = "2 ............. |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Andrew
|
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
ok..........
and if i want to use a particular printer ??? how can i get via getprinternames ??? thanks. Alberto. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Alberto!
You should read in the online-reference here: GetPrinterNames http://www.quickpdflibrary.com/help/quickpdf/GetPrinterNames.php NewCustomPrinter http://www.quickpdflibrary.com/help/quickpdf/NewCustomPrinter.php PrintDocument http://www.quickpdflibrary.com/help/quickpdf/PrintDocument.php Take the printername from the csv-list and insert it into PrintDocument. Cheers and welcome here, Ingo |
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
thank you for your answer............
i'm testing latest version and everything work fine !!!!!! |
|
![]() |
|
Alberto ![]() Beginner ![]() Joined: 12 Jan 12 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Perfect !!!!!!!!!!!
Everything work good !!!!!!! thank you for your support...... regards Alberto. |
|
![]() |
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