Print Page | Close Window

Print queue order

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=2060
Printed Date: 29 Jan 26 at 1:20PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Print queue order
Posted By: Coolingen
Subject: Print queue order
Date Posted: 02 Dec 11 at 1:39PM

Hello.

I am new to using Quick PDF Library. Got me a license just a week ago.

I am using the PrintDocument method for printing a large number of pdf-files. I need the files to appear in perfect order in the printer queue. As it is now some files loads faster than others and therefore the queue is mixed randomely. I would like the PrintDocument method to wait for the current print process to complete before exiting and going further on in the code. Any way to accomplish this?

 
I am using:
.Net
C Sharp
Quick PDF Library 8.13 DLL-version
 
// Coolingen
Sweden
 
 
 



Replies:
Posted By: Ingo
Date Posted: 02 Dec 11 at 2:19PM
Hi!

Why not wait for the resulting value before calling it with the next file?
"1" means printing successfully.

Something like
// ...
rv := QP.PrintDocument(...);
while ( rv <> 1 ) ...
// ...

Cheers and welcome here,
Ingo



Posted By: Coolingen
Date Posted: 05 Dec 11 at 10:09AM
Hi.
Thank you for your answer and welcoming.
Your solution didn't help me because the problem was of another nature. The PrintDocument() method processes the file completely and go on in the code after it gets the successful flag(1) or unsuccessful flag(0). My problem was that many small files were so quickly processed that the printer queue messed up not knowing in what order they came in. The ("not so nice") solution I made was to put a 1.1 second sleep pause in the code to assure that each file sets in the queue on an unique second.
Just thought I should explain how I solwed it.
 
Cheers,
Coolingen



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