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):||21 February 2013|
|PDF File Size:||5.9 Mb|
|ePub File Size:||10.28 Mb|
|Price:||Free* [*Free Regsitration Required]|
Email Required, but never shown.
Sending Raw Data to the Zebra Kiosk Printer
And the code failed on StartDocPrinter, it returning 0 which mean failed. Read the question carefully. Send raw data to virtual PDF printer. You will not see the appended character in the SPL-File, but if you redirect the printer output to a file add a port docihfo “Local Port” with fixed filename e. Refer to this thread: Either you will have to parse and create the printable information or as Chris Meech says, you will have use any software that can perform it.
The Sequence of API i am using it is: Windows 8 for Developers Slow Chat: Problems sending raw data to a printer.
RAW i think mean, that data are send in format useable for specific printer I don’t know a device characteristic, which can help.
And i try to use different DocInfo.
How To: Send Data Directly to a GDI Printer – Windows applications | Microsoft Docs
WritePrinter API CodeSnippet to Test I currently have no visual studio on this machine so I can’t test it, but are you saying pdaatatype you are writing printer code, but you can’t test it? Any ideas where i should find the error?
Don’t tell someone to read the manual.
Of which there are entirely too many of, that’s why you can only get an “it did not work” status code. Dieter, Dec 14, I edit the question to fix it.
Asimumair, i tired ur code got some help from Golanshahar. EndDoc strategy, you didn’t have to include the trailing FF.
View Profile View Forum Posts. Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar. Never share your secrets pdaatatype anybody. Add your solution here.
How To: Send Data Directly to a GDI Printer
Existing Members Sign in to your account. If that’s the case, I highly recommend pvatatype to either fix your printer problem because you’ll need it to perform test OR even better, install some kind of software printer so you don’t waste paper during your testing.