是PrintSystemJobInfo.JobStream坏了? [英] Is PrintSystemJobInfo.JobStream broken?

查看:486
本文介绍了是PrintSystemJobInfo.JobStream坏了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到的队列从我的目标打印机和经历就可以了作业的列表。当作业未IsSpooling,我尝试读取作业流,看打印作业。

I get the queue from my targeted printer and goes through the list of jobs on it. When a job is not IsSpooling, I try to read the JobStream to see the print job.

到目前为止,作业流一直为空。我打印的东西来自于DOS应用程序,应该是纯文本。我已经暂停了打印机安全雨林,但我仍然应该能够得到后台数据,对吧?

So far JobStream has always been null. My printed stuff comes from on DOS application and should be pure text. I've Paused the printer to safe the rain forest, but I should still be able to get the spooled data, right?

我缺少的东西,或者是PrintSystemJobInfo.JobStream坏了?

Am I missing something, or is PrintSystemJobInfo.JobStream broken?

推荐答案

这个值几乎总是会为空。请参考本论坛的帖子: http://www.vbforums.com/showthread.php?t = 549634

This value is almost always going to be null. Refer to this forum post: http://www.vbforums.com/showthread.php?t=549634

如果你想实际的二进制作业流最好的办法是看后台打印文件(.SPL)开出的C:\ WINDOWS \ SYSTEM32 \阀芯\打印机目录。您可以将其打印之前暂停工作,或中提到的联论坛发帖设置保持的打印作业设置。虽然被事先警告,这一数据来自于根据驱动程序创建的假脱机文件和应用程序启动打印格式的所有的色域。数据提取出这个流并非易事,因为它会从打印机驱动程序更改打印机驱动程序。如果您正在使用1张知名的打印机,那么你可能成功。

If you want the actual binary JobStream your best bet is to read the spool file (.SPL) out of the "C:\Windows\System32\spool\PRINTERS" directory. You can pause the job before its printed, or set the "keep print jobs" setting as mentioned in the linked forum post. Be forewarned though, this data comes in a gamut of formats all depending on the driver creating the spool file and the application initiating the print. Extracting data out of this stream is no trivial task as it will change from printer driver to printer driver. If you are working with 1 single known printer, then you may have success.

这篇关于是PrintSystemJobInfo.JobStream坏了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆