August 2003
Intermediate to advanced
736 pages
14h 48m
English
The basic unit of printing in WinForms is the print document. A print document describes the characteristics of what's to be printed, such as the title of the document, and provides the events at various parts of the printing process, such as when it's time to print a page. .NET models the print document using the PrintDocument component from the System.Drawing. Printing namespace (and available on the VS.NET Toolbox):
class PrintDocument : Component, IComponent, IDisposable {
// Constructors
public PrintDocument();
// Properties
public PageSettings DefaultPageSettings { get; set; }
public string DocumentName { get; set; } public PrintController PrintController { get; set; } public PrinterSettings PrinterSettings { get; set; ...Read now
Unlock full access