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 queue order
  FAQ FAQ  Forum Search   Register Register  Login Login

Print queue order

 Post Reply Post Reply
Author
Message
Coolingen View Drop Down
Beginner
Beginner
Avatar

Joined: 02 Dec 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Coolingen Quote  Post ReplyReply Direct Link To This Post Topic: Print queue order
    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
 
 
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Coolingen View Drop Down
Beginner
Beginner
Avatar

Joined: 02 Dec 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Coolingen Quote  Post ReplyReply Direct Link To This Post 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
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