Chapter Summary

The .NET Framework helps you give your applications complete printer control through a set of custom classes. The key object involved is an instance of the PrintDocument class, which represents a document to be printed. When you call the PrintDocument.Print() method, it triggers the PrintPage event of the class. In the PrintPage event, you can retrieve a Graphics object that represents the page to be printed and draw on it by using the familiar methods of the Graphics object.

KEY TERM

Other events of the PrintDocument object let you manage initialization and cleanup for printing and manipulate page settings on a page-by-page basis.

The .NET Framework also provides components that give you access to the built-in ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET 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.