Article ID: 138594
It is sometimes necessary to send printer-specific data directly to a printer, bypassing the driver. The Win32 API provides a do it that works on local and networked printers. This method can be used to replace the PASSTHROUGH escape and SpoolFile() methods used in previous versions of the Windows API.
Sample CodeYou can use the following code to send raw data directly to a printer in Windows NT or Windows 95.
The following file is available for download from the Microsoft Download Center:
RAWPRN.EXERelease Date: February 10, 2000
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
(http://support.microsoft.com/kb/119591/EN-US/ )How to Obtain Microsoft Support Files from Online Services
For additional information, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/154078/EN-US/ )HOWTO: SendRaw Data to a Printer Using the Win32 API from VB
Article ID: 138594 - Last Review: June 22, 2014 - Revision: 5.0
Contact us for more help