C# 클래스 ApiExamples.ExRendering.MyPrintDocument

The way to print in the .NET Framework is to implement a class derived from PrintDocument. This class is an example on how to implement custom printing of an Aspose.Words document. It selects an appropriate paper size, orientation and paper tray when printing.
상속: System.Drawing.Printing.PrintDocument
파일 보기 프로젝트 열기: aspose-words/Aspose.Words-for-.NET

공개 메소드들

메소드 설명
MyPrintDocument ( System.Windows.Forms.Document document ) : System

보호된 메소드들

메소드 설명
OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void

Called before the printing starts.

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

Called for each page to render it for printing.

OnQueryPageSettings ( System.Drawing.Printing.QueryPageSettingsEventArgs e ) : void

Called before each page is printed.

메소드 상세

MyPrintDocument() 공개 메소드

public MyPrintDocument ( System.Windows.Forms.Document document ) : System
document System.Windows.Forms.Document
리턴 System

OnBeginPrint() 보호된 메소드

Called before the printing starts.
protected OnBeginPrint ( System.Drawing.Printing.PrintEventArgs e ) : void
e System.Drawing.Printing.PrintEventArgs
리턴 void

OnPrintPage() 보호된 메소드

Called for each page to render it for printing.
protected OnPrintPage ( System.Drawing.Printing.PrintPageEventArgs e ) : void
e System.Drawing.Printing.PrintPageEventArgs
리턴 void

OnQueryPageSettings() 보호된 메소드

Called before each page is printed.
protected OnQueryPageSettings ( System.Drawing.Printing.QueryPageSettingsEventArgs e ) : void
e System.Drawing.Printing.QueryPageSettingsEventArgs
리턴 void