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):||25 July 2011|
|PDF File Size:||8.27 Mb|
|ePub File Size:||7.24 Mb|
|Price:||Free* [*Free Regsitration Required]|
Last edited by Marc G; November 15th, at WritePrinter is the only version of API function, no wide version. Change the printer docnifo as ur own.
WritePrinter API CodeSnippet to Test I currently have no visual studio on this machine so I can’t test it, but are you saying that you are writing printer code, but you can’t test it? Steve Alpert, Dec 14, Join Date Jul Posts 1.
Sending Raw Data to the Zebra Kiosk Printer
Add your solution here. Just guessing, but it seems like pdatatpye are sending the PDF directly to the printer and bypassing all printing operations. When i am giving print command from the Word or Notepad it becomes printing. I don’t want to drive extra paper through the printer if I don’t have to. It dkcinfo means that the printer is not understanding the command which i am giving to it. In a simple test program, I’m trying to print in RAW mode to a printer using the following template.
I don’t know a device characteristic, which can help.
I’m printing to an attached old HP LJ4. I am sorry dude Is there anything I can get from the device characteristics that say I need one? You may have to register or Login before you can post: I edit the question to fix it. You will not see the appended character in the SPL-File, but if you redirect the printer output to a file add a port to “Local Port” with fixed filename e.
Please Sign up or sign in to vote.
Pdatattpe i think mean, that data are send in format useable for specific printer I believe the problem was the missing formfeed. Dieter, Dec 14, The correct usage is as follows: Not getting anything useful out a printer driver, yeah, that happens.
Email Required, but never shown. You’ll need to choose a username for the site, which only take a couple of moments here. All times are GMT I am not sure what error is it. Dovinfo are not welcome. Asimumair, i tired ur code got some help from Golanshahar.
RAW print mode not working..
Windows 8 for Developers Slow Chat: But i am unable to check this with my machine. 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. Do you need your password?