Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi
I've attached a program that had errors in the information display
The program will print queue information
The program is written in C # and Visual Basic.
I've attached a picture of the screen with bulging problem

dowenload program :[^]
http://s5.picofile.com/file/8135471742/ss_1_.jpg[^]

Thanks
Posted
Updated 17-Aug-14 8:40am
v2
Comments
Maciej Los 18-Aug-14 14:31pm    
It does not work like that! You need to describe your problem in details.

My guess would be that you are getting the information about the spooled job (number of pages and job size) before the job has finished spooling.

You need to wait for the "JobWritten" event where .Spooled is true - at that stage all of the data for the print job are in the spooler and so your query will return the correct size / number of pages.
 
Share this answer
 
VB
Hi
Call me an example
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900