你怎么知道发送了哪个网络打印系统的命令

问题描述:



我附上了一个在信息显示中出错的程序

该程序将打印队列信息

该程序是用C#和Visual Basic编写。

我附上了一个凸出问题的屏幕图片



下载程序: [ ^ ]

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



谢谢

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

我的猜测是你得到的在作业完成假脱机之前有关假脱机作业的信息(页数和作业大小)。



您需要等待JobWritten事件.Spooled是的 - 在那个阶段,打印作业的所有数据都在假脱机程序中,因此您的查询将返回正确的页面大小/页数。
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.


Hi
Call me an example
Thanks