Skip to Content
Windows Forms Programming in C#
book

Windows Forms Programming in C#

by Chris Sells
August 2003
Intermediate to advanced
736 pages
14h 48m
English
Addison-Wesley Professional
Content preview from Windows Forms Programming in C#

Printer Settings

So far, all the printing in this chapter has been done to the default printer, as defined by Windows itself. The user can change the printer for a document via the Printer button on the PageSetupDialog. It's more common, however, to allow the user to choose the printer after choosing the Print item from the File menu. For this you use the PrintDialog component, as shown in Figure 7.9.

Figure 7.9. The PrintDialog Component

Using the PrintDialog component looks like this:

 PrintDialog printDialog1; void InitializeComponent() { ... this.printDialog1 = new PrintDialog(); ... // Can set the PrintDialog's Document property // in the ...
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.
Start your free trial

You might also like

Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET

Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET

Vaskaran Sarcar
Programming .NET Windows Applications

Programming .NET Windows Applications

Jesse Liberty, Dan Hurwitz
.NET Windows Forms in a Nutshell

.NET Windows Forms in a Nutshell

Ian Griffiths, Matthew Adams

Publisher Resources

ISBN: 0321116208Purchase book