Monday, June 16, 2008

How to send raw data to a printer by using Visual Basic .NET

How to send raw data to a printer by using Visual Basic .NET: "How to send raw data to a printer by using Visual Basic .NET"
To send raw data to a printer from the Microsoft .NET Framework, your program must work with Win32 spooler functions. Through the .NET Framework, you can print by using PrintDocument, PrintController, and associated classes. However, with the .NET Framework, you cannot send preformatted printer-ready data to a printer. You may have to send raw data to a printer to do the following:

Send escape sequences.

Download, and then use soft fonts.

Spool preprinted files.To send these types and other types of raw data to a printer, your code must work with Win32 Spooler Application Programmer Interfaces (APIs). The following code shows how to read the contents of a preformatted file into memory, and then send those bytes to the printer by using WritePrinter.
http://support.microsoft.com/?scid=kb;EN-US;322090




http://www.visli.com/

No comments: