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 settings like duplex, punch ... |
Post Reply ![]() |
Author | |
iquser ![]() Beginner ![]() Joined: 08 Apr 13 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 08 Apr 13 at 4:52PM |
We want set print options like duplex, punch, stable and media source (paper cassette).
I use the PrintDocument methode, but I can't find a methode for set the print options. We use the DLL Version with Embarcadero C++. Thank you for your support. Markus
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Markus!
You should setup local printer installations with the needed properties and then you can call these "printer variants" via PrintDocument. Another idea: You can use SetupCustomPrinter from QuickPDF: The function: http://www.quickpdflibrary.com/help/quickpdf/SetupCustomPrinter.php How to: http://www.quickpdflibrary.com/faq/how-do-i-use-the-setupcustomprinter-function.php Cheers and welcome here, Ingo |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Markus, QP.SetupCustomPrinter is the first place to start for Duplex, Copies. http://www.quickpdflibrary.com/help/quickpdf/GetPrinterDevModeToString.php http://www.quickpdflibrary.com/help/quickpdf/SetPrinterDevModeFromString.php Many printer drivers require the use a custom DevMode string. The idea is that you setup you printer driver in Windows to select the required tray, stapler, duplex etc. as default. You then run your QPL program and call GetPrinterDevModeToString and then save that string to a file. Now each time you want to select that tray you create your custom printer, load the string from the file and call SetPrinterDevModeFromString and this will select the correct tray, stapler and duplex settings. This link will explain things in more detail. http://nicholas.piasecki.name/blog/2008/11/programmatically-selecting-complex-printer-options-in-c-shar/ As of 9.14 it is possible to combine SetupCustomerPrinter and the DevMode functions.
Andrew. |
|
![]() |
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