S
Steve Alpert
In a simple test program, I'm trying to print in RAW mode to a printer using the
following template. If I use RAW, and pause the printer, I can see an entry in
the queue but nothing comes out. The data is plain text. If I change to TEXT
mode, the text prints. I'm printing to an attached (old) HP LJ4.
Any ideas?
/steveA
========= Template of code =============
OpenPrinter( szPrinterName, &hPrinter, NULL )
// Fill in the structure with info about this "document."
DocInfo.pDocName = "My Test Document";
DocInfo.pOutputFile = NULL;
DocInfo.pDatatype = "RAW"; <<== with TEXT, it works
StartDocPrinter( hPrinter, 1, (LPBYTE)&DocInfo )
StartPagePrinter( hPrinter )
WritePrinter( hPrinter, lpData, dwCount, &dwBytesWritten )
EndPagePrinter( hPrinter )
EndDocPrinter( hPrinter )
ClosePrinter( hPrinter )
following template. If I use RAW, and pause the printer, I can see an entry in
the queue but nothing comes out. The data is plain text. If I change to TEXT
mode, the text prints. I'm printing to an attached (old) HP LJ4.
Any ideas?
/steveA
========= Template of code =============
OpenPrinter( szPrinterName, &hPrinter, NULL )
// Fill in the structure with info about this "document."
DocInfo.pDocName = "My Test Document";
DocInfo.pOutputFile = NULL;
DocInfo.pDatatype = "RAW"; <<== with TEXT, it works
StartDocPrinter( hPrinter, 1, (LPBYTE)&DocInfo )
StartPagePrinter( hPrinter )
WritePrinter( hPrinter, lpData, dwCount, &dwBytesWritten )
EndPagePrinter( hPrinter )
EndDocPrinter( hPrinter )
ClosePrinter( hPrinter )