Learning by Example: Adding Printing Capabilities to FontPad
In this example, we extend the FontPad application that we created in the previous section to include printing functionality. We do so by adding a Page Setup form that allows users to indicate things such as page size and orientation. We then create a simple Print Dialog form that enables users to indicate which printer they want to use and what pages they want printed.
Key Concepts Covered
The following represents the key class and concepts demonstrated with this sample application:
Setting and enforcing margins on a printed page
Using the PrintDocument class to output text to the printer
Using the PaperSizes and PaperSources properties of the PrinterSettings class to return the sizes ...
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.