Is PrintSystemJobInfo.JobStream broken?

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

So far, JobStream has always been zero. My printed matter comes from a DOS application and should be clear text. I paused the printer to protect the rainforest, but I can still get buffered data, right?

Am I missing something or typing PrintSystemJobInfo.JobStream?

+3
source share
1 answer

This value will almost always be zero. See this forum: http://www.vbforums.com/showthread.php?t=549634

If you want the actual binary JobStream to be the best, you need to read the spool file (.SPL) from the directory "C: \ Windows \ System32 \ spool \ PRINTERS". You can pause the job before printing it, or set the β€œsave print jobs” setting as indicated in the message from the related forum. However, it should be remembered that this data comes in a gamut of formats, depending on the driver that creates the spool file and the application that initiates printing. Retrieving data from this stream is not a trivial task, as it will change from the printer driver to the printer driver. If you work with one single known printer, you may have success.

+2
source

Source: https://habr.com/ru/post/916262/


All Articles