November 14, 2003

Skip Navigation LinksIrocon > Blog > 2003 > November, 2003 > November 14, 2003

Printing in VB.NET

By Mike Gold 06/25/2003 Download Using components is the difference between writing an application in one week vs. an application in a few hours. Printing is all carried out through components included in the toolbox. The main component that talks to the printer is the PrintDocument component. To use this component, just call the Print function and intercept the PrintPage event. Below...Last Updated:Thursday, September 02, 2010By:alferoSource#

Print directly to printer

' PrintDirect.vb' Shows how to write data directly to the printer using Win32 API's' Written 17th October 2002 By J O'Donnell - csharpconsulting@hotmail.com 'Adapted from Microsoft Support article Q298141 'This code assumes you have a printer at share file://192.168.1.101/hpl 'This code sends Hewlett Packard PCL5 codes to the printer to print' out a rectangle in the middle of the page. Imports...Last Updated:Thursday, September 02, 2010By:alfero#