Click or drag to resize

ExcelPrintOptions Class

Stores MS Excel print and print related options.
Inheritance Hierarchy

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public sealed class ExcelPrintOptions

The ExcelPrintOptions type exposes the following members.

Public propertyAutomaticPageBreakScalingFactor
Scaling factor for automatic page breaks.
Public propertyBottomMargin
Bottom margin (in inches).
Public propertyDraftQuality
for printing in draft quality, otherwise.
Public propertyFitToPage
for using FitWorksheetHeightToPages and FitWorksheetWidthToPages, otherwise.
Public propertyFitWorksheetHeightToPages
Fit worksheet height to this number of pages (0 = use as many as needed).
Public propertyFitWorksheetWidthToPages
Fit worksheet width to this number of pages (0 = use as many as needed).
Public propertyFooterMargin
Footer margin (in inches).
Public propertyHeaderMargin
Header margin (in inches).
Public propertyHorizontalCentered
for printing sheet horizontal centered, otherwise.
Public propertyLeftMargin
Left margin (in inches).
Public propertyNumberOfCopies
Number of copies to print.
Public propertyPageHeight
Gets the height of the page (in inches).
Public propertyPageWidth
Gets the width of the page (in inches).
Public propertyPaperType
Gets or sets the type of the paper for the page.
Public propertyPortrait
for portrait orientation, for landscape orientation.
Public propertyPrintBlackWhite
for printing in black and white, otherwise.
Public propertyPrintCellNotes
for printing cell notes, otherwise.
Public propertyPrintGridlines
for printing gridlines, otherwise.
Public propertyPrintHeadings
for print headings, otherwise.
Public propertyPrintNotesSheetEnd
for printing notes at end of sheet, otherwise.
Public propertyPrintPagesInRows
for printing pages in rows, otherwise.
Public propertyPrintResolution
Print resolution in DPI (dots per inch).
Public propertyRightMargin
Right margin (in inches).
Public propertyStartPageNumber
Start page number.
Public propertyTopMargin
Top margin (in inches).
Public propertyUseStartPageNumber
for using start page number, otherwise.
Public propertyVerticalCentered
for printing sheet vertical centered, otherwise.
Public propertyVerticalPrintResolution
Vertical print resolution in DPI (dots per inch).
Public methodEquals
Determines whether the specified ExcelPrintOptions is equal to the current ExcelPrintOptions.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ObjectGetHashCode.)
Public methodSetPrinterSettings(Byte)
Sets the printer settings by using a byte array that contains the DEVMODE structure that corresponds to the printer settings.
Public methodSetPrinterSettings(IntPtr)
Sets the printer settings by using a handle to a DEVMODE structure that corresponds to the printer settings.
Public methodSetPrinterSettings(String, Stream)
Sets the printer settings by using a printer name and an XML stream (that contains a PrintTicket document) that complies with the XML Print Schema.
See Also