AsposeWordsPrintDocument Class |
Namespace: Aspose.Words.Rendering
The AsposeWordsPrintDocument type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AsposeWordsPrintDocument |
Initializes a new instance of this class.
|
Name | Description | |
---|---|---|
![]() | Container | (Inherited from Component.) |
![]() | DefaultPageSettings | (Inherited from PrintDocument.) |
![]() | DocumentName | (Inherited from PrintDocument.) |
![]() | OriginAtMargins | (Inherited from PrintDocument.) |
![]() | PrintController | (Inherited from PrintDocument.) |
![]() | PrinterSettings | (Inherited from PrintDocument.) |
![]() | Site | (Inherited from Component.) |
Name | Description | |
---|---|---|
![]() ![]() | CachePrinterSettings |
Reads and caches some fields of PrinterSettings
to reduce printing time.
|
![]() | CreateObjRef | (Inherited from MarshalByRefObject.) |
![]() | Dispose | (Inherited from Component.) |
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetLifetimeService | (Inherited from MarshalByRefObject.) |
![]() | GetType | (Inherited from Object.) |
![]() | InitializeLifetimeService | (Inherited from MarshalByRefObject.) |
![]() | (Inherited from PrintDocument.) | |
![]() | ToString | (Inherited from PrintDocument.) |
Name | Description | |
---|---|---|
![]() | BeginPrint | (Inherited from PrintDocument.) |
![]() | Disposed | (Inherited from Component.) |
![]() | EndPrint | (Inherited from PrintDocument.) |
![]() | PrintPage | (Inherited from PrintDocument.) |
![]() | QueryPageSettings | (Inherited from PrintDocument.) |
AsposeWordsPrintDocument overrides OnBeginPrint(PrintEventArgs) to print the range of pages that is specified in PrinterSettings.
A single Word document can consist of multiple sections that specify pages with different sizes, orientation and paper trays. AsposeWordsPrintDocument overrides OnQueryPageSettings(QueryPageSettingsEventArgs) to properly select paper size, orientation and paper source when printing a Word document.
Microsoft Word stores printer specific values for paper trays in a Word document and therefore, only printing on the same printer model as the one that was selected when the user specified the paper trays will result in printing from the correct trays. If you print a document on a different printer, then most likely the default paper tray will be used, not the trays specified in the document.