Kubilay74
asked on
Read printer queue
I need to read the content of the document waiting in the printer queue form a Visual Basic application. Not the size, or date only the content. I suppose that if the printer can print it, there must be a way to get this content beofre it reaches the printer. Can you help me ??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The actual SPL file can be in either an EMF file or in the printer raw language (PostScript, PCL5, etc.) The EMF format is undocumented (but reasonably easy to decypher) and the other languages are documented by their manufacturer. You can query the print job with the GetJob API call to find out what language is being used.
Therefore any application that wishes to read the content of the printed document (as I have done in http://www.merrioncomputing.com/Business/case4.htm - "Print Content Indexing") needs to be extensible in order to support any new printer languages that are added.
Hope this helps,
Duncan