Article ID: 154078 - View products that this article applies to.
This article was previously published under Q154078
The Visual Basic Printer object allows for printing through printer drivers, but there may be times when it is desirable to use the Win32 API to send information more directly to the printer. The code sample to follow shows how to achieve this by using API functions that bypass printer drivers to communicate directly with the print spooler.
The Win32 SDK Help files give a more detailed description of the APIs used in the sample.
For information on the same procedure for VC++, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/138594/EN-US/ ): How To Send Raw Data to a Printer by Using the Win32 API
Article ID: 154078 - Last Review: August 30, 2004 - Revision: 2.2
Contact us for more help
Connect with Answer Desk for expert help.