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

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

Méthodes publiques

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

The constructor of the custom PrintDocument class.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System

OnBeginPrint() protected méthode

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
Résultat void

OnPrintPage() protected méthode

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
Résultat void