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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access