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 - Print settings like duplex, punch ...
  FAQ FAQ  Forum Search   Register Register  Login Login

Print settings like duplex, punch ...

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


Joined: 08 Apr 13
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote iquser Quote  Post ReplyReply Direct Link To This Post Topic: Print settings like duplex, punch ...
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 08 Apr 13 at 8:54PM
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

 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 10 Apr 13 at 8:49AM
Markus,

QP.SetupCustomPrinter is the first place to start for Duplex, Copies.  

In QPL 8.xx and 9.xx  we have the following functions.

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.
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