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):||27 May 2012|
|PDF File Size:||10.2 Mb|
|ePub File Size:||1.44 Mb|
|Price:||Free* [*Free Regsitration Required]|
And the code failed on StartDocPrinter, it returning 0 which mean failed.
QuinStreet does not include all companies or all types of products available in the marketplace. I tried different solution for example like printing via adopbe reader but i dont want to use other software. So using GetLastError just gets you a bewildering random number. Chances are they have and don’t get it.
I noticed the print driver was set to RAW. pdztatype
How To: Send Data Directly to a GDI Printer
I don’t want to drive extra paper through the printer if I don’t have to. Probably there is some define missing. Insults are not welcome. Sign up using Email and Password.
All times are GMT Add your solution here. Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar. Post as a guest Name. Asimumair, i tired ur pdatatyp got some help from Golanshahar.
Steve Alpert, Dec 14, Cut-throat business, no money for good devs and all. Ask a Question Want to reply to this thread or ask your own question?
Hi Steve, try setting “DocInfo.
_DOCINFOA | Microsoft Docs
Articles Quick Answers Messages Use my saved content filters. When answering a question please: Look for anything in the Pddatatype event log. When i am giving print command from the Word or Notepad it becomes printing. I edit the question to fix it. The only change I did was I sent actual printer codes to the printer to make it print.