C# Class Aspose.Words.Examples.CSharp.Rendering_and_Printing.MultipagePrintDocument

Inheritance: System.Drawing.Printing.PrintDocument
Mostrar archivo Open project: aspose-words/Aspose.Words-for-.NET Class Usage Examples

Public Methods

Method Description
MultipagePrintDocument ( System.Windows.Forms.Document document, int pagesPerSheet, bool printPageBorders ) : System

The constructor of the custom PrintDocument class.

Protected Methods

Method Description
OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void

The overridden method OnBeginPrint, which is called before the first page of the document prints.

OnPrintPage ( System.Drawing.Printing.PrintPageEventArgs e ) : void

Generates the printed page from the specified number of the document pages.

Private Methods

Method Description
GetThumbCount ( int pagesPerSheet ) : Size

Defines the number of columns and rows depending on the pagesPerSheet number and the page orientation.

HundredthsInchToPoint ( float value ) : float

Converts hundredths of inches to points.

Method Details

MultipagePrintDocument() public method

The constructor of the custom PrintDocument class.
public MultipagePrintDocument ( System.Windows.Forms.Document document, int pagesPerSheet, bool printPageBorders ) : System
document System.Windows.Forms.Document
pagesPerSheet int
printPageBorders bool
return System

OnBeginPrint() protected method

The overridden method OnBeginPrint, which is called before the first page of the document prints.
protected OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void
e System.Drawing.Printing.PrintEventArgs
return void

OnPrintPage() protected method

Generates the printed page from the specified number of the document pages.
protected OnPrintPage ( System.Drawing.Printing.PrintPageEventArgs e ) : void
e System.Drawing.Printing.PrintPageEventArgs
return void