Print Page | Close Window

Print and Sort

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=2076
Printed Date: 26 Apr 26 at 2:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Print and Sort
Posted By: PDFNow
Subject: Print and Sort
Date Posted: 20 Dec 11 at 8:50AM
Hello,

I want to print a pdf-document several times with this code:

            Dim customPrinter
            Call QP.LoadFromFile("C:\Temp\Test.pdf")
            customPrinter = QP.NewCustomPrinter(GetDefaultPrinterName)
            Call QP.SetupCustomPrinter(customPrinter, 8, 1)
            Call QP.SetupCustomPrinter(customPrinter, 4, 2)
            Call QP.PrintDocument(customPrinter, 1, QP.PageCount, QP.PrintOptions(0, 0, "PDF"))

The problem is that the printout is'nt sorted.

Does someone know an answer to my problem?

Thanks.



Replies:
Posted By: AndrewC
Date Posted: 21 Dec 11 at 3:23AM
Unfortunately some printer drivers do not use the DEVMODE settings at all and store the settings in their own positions.  

Here are some other customers with similar problem.  Also this is a Windows design issue and not something we can fix in QPL apart from the following functions below.

http://www.quickpdf.org/forum/duplex-setting-not-working_topic2004_post8526.html?KW=DEVMODE#8526 - http://www.quickpdf.org/forum/duplex-setting-not-working_topic2004_post8526.html?KW=DEVMODE#8526
http://www.quickpdf.org/forum/how-to-print-color-pdf-in-grayscale_topic1322_post8318.html?KW=DEVMODE#8318 - http://www.quickpdf.org/forum/how-to-print-color-pdf-in-grayscale_topic1322_post8318.html?KW=DEVMODE#8318

We have added the following functions into QPL recently

http://www.quickpdflibrary.com/help/quickpdf/GetPrinterDevModeToString.php
http://www.quickpdflibrary.com/help/quickpdf/SetPrinteDevModeFromString.php

Andrew.


Posted By: PDFNow
Date Posted: 21 Dec 11 at 8:37AM
Thanks for the help. The (8 years old) printer was the problem...



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