me = “My Document”; tFile = NULL; DocInfo. pDatatype = “RAW”; // Inform the spooler the document is. pDatatype = (LPTSTR)_T(“RAW”);. This casting boils down to DocInfo. NULL; ype = dataType; DWORD printJob = StartDocPrinter(hprinter, 1. pDocName = (LPTSTR)_T(“test”); tFile = NULL; DocInfo. pDatatype = (LPTSTR)_T(“RAW”); // Inform the spooler the document is.
|Published (Last):||10 February 2016|
|PDF File Size:||16.91 Mb|
|ePub File Size:||9.57 Mb|
|Price:||Free* [*Free Regsitration Required]|
RAW print mode not working.
c++ – Windows GDI Printer error StartDocPrinter – Stack Overflow
In a simple test program, I’m trying to print in RAW mode to a printer using the following template. The data is plain text. I’m printing to an attached old HP LJ4. Steve Alpert, Dec 13, Hi Steve, try setting “DocInfo.
_DOCINFOA | Microsoft Docs
docknfo It should contain exactly what you have send to the spooler with WritePrinter. Dieter, Dec 13, Thanks for your help. I nulled pDatatype and included a trailing FF.
I believe the problem was the missing formfeed. In the old StartDoc. EndDoc strategy, you didn’t have to include the trailing FF.
Is there anything I can get from the device characteristics that say I need one? I noticed the print driver was docinf to RAW.
I don’t want to drive extra paper through the printer if I don’t have to. Steve Alpert, Dec 14, You will not see the appended character in the SPL-File, but if you redirect the printer output to a file add docifno port to “Local Port” with fixed filename e.
Perhaps newer version will have. I don’t know a device characteristic, which can help.
Problems sending raw data to a printer
Dieter, Dec 14, Ask a Question Want to reply to this thread or ask your own question? You’ll need to choose a username for the site, which only take a couple of moments here.
After that, you can post your question and our members will help you out.