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 queue order |
Post Reply
|
| Author | |
Coolingen
Beginner
Joined: 02 Dec 11 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Print queue orderPosted: 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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Coolingen
Beginner
Joined: 02 Dec 11 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
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