Learn how to format, preview, and print output the way you want it to look using the capabilities of the .NET System.Drawing.Printing namespace and the PrintDocument class.
by Wei-Meng Lee
May 18, 2006
rinting is an integral functionality found in almost every decent Windows application. For example, you might be working on a POS (Point of Sale) application and need to print receipts, or you may want to print out employee records from a database. In either case, you need to be able to send the output directly to the printer. What's more, you must have the capability to format the printout the way you want it to appear on paper.
Fortunately, the System.Drawing.Printing namespace in .NET contains all the necessary classes for printing-related services. Specifically, using the PrintDocument class, you can now print from your Windows-based application with ease.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!