Printing

Previous to .NET, printing with Visual Basic involved either using the common print dialog control and/or the Win32 API. The former did not always provide enough flexibility and the later sapped the productivity level to which VB developers have become accustomed. System.Drawing.Printing to the rescue! This namespace provides us with a ton of flexibility while encapsulating the low-level stuff that can often bog down programmers.

Sending Output to the Printer

Printing in Windows involves a printer device context. The good news is that this context can be used the same way as any other device context. All the drawing functions presented in the following chapter, for instance, work the same way for printers as they do for display devices. ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.