Print Page | Close Window

Duplex setting not working?

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=2004
Printed Date: 04 Apr 26 at 8:03PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Duplex setting not working?
Posted By: mbosio
Subject: Duplex setting not working?
Date Posted: 18 Oct 11 at 4:42AM
When printing a duplex document, duplex seems to always flip horizontally whether set to "flip vertically" or "flip horizontally."  I'm setting the duplex mode using SetupCustomPrinter.  I suspect this is a bug.



Replies:
Posted By: Ingo
Date Posted: 18 Oct 11 at 6:08PM
Hi!

If it's a bug please use the official website for this.
Here it's only the user-user-forum ;-)

Cheers and welcome here,
Ingo



Posted By: AndrewC
Date Posted: 19 Oct 11 at 8:50AM
It is more likely a bug in the printer driver.  This is a common problem and it all depends on how well the printer driver is written.  A quick search on Google shows that setting this value on some printer drivers doesn't even select duplex.

http://nicholas.piasecki.name/blog/2008/11/programmatically-selecting-complex-printer-options-in-c-shar/ - http://nicholas.piasecki.name/blog/2008/11/programmatically-selecting-complex-printer-options-in-c-shar/

This article is very interesting reading.

We have added 2 functions in QPL 8.12 that allow you to read the current DEVMODE and also set the DEVMODE just before printing which is basically doing what is described in the article.

Printer Drivers are written to interface with Windows via the DEVMODE structure but many drivers add extra information to the end of the DEVMODE structure to define special functions such as stapling , collating and many of them seem to use their one memory for storing and retrieving these settings.  Their GUI Printer Setup Dialog box knows how to communicate correctly with the DEVMODE structure but they don't document the fields, values or codes required for others.

Unfortunately QPL is relying on the standard DEVMODE structure to set these values in DEVMODE but not all printer drivers respond in the same way or even at all.  

What version of QPL are you using ?

Andrew.



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