Introduction to Printing in .NET

Adding printing support to your .NET application is relatively easy, especially after you have read through Chapter 26, “Graphics Programming.” Essentially, printing involves writing your custom code. This code then draws on the display surface, which happens to be the printer paper.

The first step involves using an instance of the System.Drawing. Printing.PrintDocument class in your application. The PrintDocument object is used by the .NET printing process. Events are dispatched to the PrintDocument object during the printing process. It becomes your responsibility to respond to these events with your specific printing code.

The code you write that actually draws on the printed page can be as complex as you like. ...

Get Visual Basic® .NET by Example 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.