PrintOptions Class
Specifies information about how a document is printed.
- Inheritance:
- PrintOptions
Constructors
PrintOptions()
Initializes a new instance of the PrintOptions class.
PrintOptions(Stream)
Initializes a new instance of the PrintOptions class.
Parameters
xmlStream
- Stream
Initializes a new instance of the PrintOptions class by using an XML stream (that contains a PrintTicket document) that complies with the XML Print Schema.
Properties
CopyCount
Gets or sets the number of copies of the document to print.
Property Value
The number of copies of the document to print.
Exceptions
Value must be positive.
DocumentName
Gets or sets the name of the printed document in the print queue.
Default value is 'Pdf'.
Property Value
The name of the printed document in the print queue.
FromPage
Gets or sets the page index of the first page to print.
Property Value
The page index of the first page to print.
Remarks
Document pages are zero-indexed meaning that first page in the document has index 0 (zero).
Exceptions
Value cannot be negative.
ToPage
Gets or sets the index of the last page to print.
Property Value
The index of the last page to print.
Remarks
Use MaxValue value to print to the last page.
Exceptions
Value cannot be lower than FromPage.