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!
![]() |
Print To Different Tray/Bin Not Working |
Post Reply ![]() |
Author | ||
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3471 |
![]() ![]() ![]() ![]() ![]() Posted: 28 Sep 22 at 9:43PM |
|
Do you read all at "for default source" (New Value)?
https://www.debenu.com/docs/pdf_library_reference/SetupCustomPrinter.php There should be a problem... After each code line you can check the returning value of the call from one line before. 1 means okay / 0 means error Perhaps this helps one step further? |
||
Cheers,
Ingo |
||
![]() |
||
m_alam ![]() Team Player ![]() ![]() Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
|
that is the code i am using to setup printer tray, what i am doing wrong here? can you please tell me? thanks in advance best regards
|
||
![]() |
||
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3471 |
![]() ![]() ![]() ![]() ![]() |
|
not really "exactly" cause my code works for me ;-)
|
||
Cheers,
Ingo |
||
![]() |
||
m_alam ![]() Team Player ![]() ![]() Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
|
that's what exactly my code does, though in different language.. but it just not working :( |
||
![]() |
||
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3471 |
![]() ![]() ![]() ![]() ![]() |
|
Hi Hassan,
To check about the real printer names i use: GetPrinterNames. To check about existing printer bins i use: GetPrinterBins. Doing the output the following syntax should help: if ( prname = 'default' ) Then PriName := QP.GetDefaultPrinterName; if ( prname <> 'default' ) then PriName := prname; // . . . propt := QP.PrintOptions(pscal, rotate, fname); if ( bin > 0 ) Then begin cPriName := QP.NewCustomPrinter(PriName); QP.SetupCustomPrinter(cPriName, 9, bin); end; if ( pend = 9999 ) then pend := pc; // pagecount for i := 1 to copies do begin if ( bin > 0 ) Then QP.PrintDocument(cPriName, pstart, pend, propt) // with bin else QP.PrintDocument(PriName, pstart, pend, propt); // without bin end; |
||
Cheers,
Ingo |
||
![]() |
||
m_alam ![]() Team Player ![]() ![]() Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
|
Greeting, i am trying to print to different tray/bin.. i have tried to set paper tray number using following code:
my printer has 4 trays.. i tried 1 to number 4 that didn't work.. so, i made a demo tool to list the printer trays, but strangely it shows same trays number for most of my printers :( ![]() but still when i try to print tray 15 and 257 (using 1st printer name), both print to same/default tray :( and more strange is that the 2nd printer on the list only have 1 tray, but qpl also shows same trays number for that one too? :( so? what i am doing wrong here? thanks in advance for upcoming help best regards
|
||
![]() |
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