Getting into the Details: Custom Controlling and the Print Controller

SUMMARY

Printing functionality in the .NET Framework library is defined in the System.Drawing.Printing namespace. In this chapter we discussed almost every possible aspect of printing. We began by discussing the history of printing in Microsoft Windows. Then we discussed printing-related functionality in the Microsoft .NET Framework.

After a basic introduction to printing in .NET, you learned the basic steps required to write a printing application and how printing differs from on-screen drawing. You also learned how to print simple text; graphics objects such as lines, rectangles, and circles; images; text files; and other documents.

The PrinterSettings class provides members to get and set printer settings. We discussed how to use this class and its members.

The .NET Framework library provides printing-related standard dialogs. You learned to use the PrintDialog, PrintPreviewDialog, and PageSetupDialog classes to provide a familiar Windows look and feel in your applications.

Multipage printing can be a bit tricky. You learned how to write an application with multipage printing functionality.

At the end of this chapter we discussed how to write custom printing and page setup dialogs using PageSettings and related classes. We also discussed the advanced custom print controllerrelated classes and how to use them in applications.

More Printing Samples

For more printing-related samples, C# Corner's section on printing (www.c-sharpcorner.com/printing.asp) is a good resource. There you will find many useful and handy sample code downloads, including printing a form and its contents, printing a data grid, and much more.

Using GDI+ in Web applications is a requirement for Web developers. Chapter 12 will cover the use of GDI+ to draw on the Web.

GDI+: The Next-Generation Graphics Interface

Your First GDI+ Application

The Graphics Class

Working with Brushes and Pens

Colors, Fonts, and Text

Rectangles and Regions

Working with Images

Advanced Imaging

Advanced 2D Graphics

Transformation

Printing

Developing GDI+ Web Applications

GDI+ Best Practices and Performance Techniques

GDI Interoperability

Miscellaneous GDI+ Examples

Appendix A. Exception Handling in .NET



GDI+ Programming with C#
GDI+ Programming with C#
ISBN: 073561265X
EAN: N/A
Year: 2003
Pages: 145

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net