Search
WorkbookPrinter Members
Constructors Properties Methods
 


Provides print and print preview for Workbook objects.

The following tables list the members exposed by the WorkbookPrinter type.

 Public Constructors

  Name Description

WorkbookPrinter

Overloaded. Initializes a new instance of the WorkbookPrinter class.

 Public Properties

  Name Description

DocumentName

Gets or sets the name of the printed document.

EnableGridLines

Gets or sets a value indicating whether to print the grid lines.

EnableObjects

Gets or sets a value indicating whether to print drawing objects.

FromWorksheet

Gets or sets the zero-based index of the first worksheet to print.

HeaderFormat

Gets or sets the format of page headers.

Landscape

Gets or sets a value indicating whetherthe page is printed in landscape or portrait orientation.

Margins

Gets or sets the margins for the printed pages, expressed in hundredths of an inch.

PageOrder

Gets or sets the order of printed pages.

Scale

Gets or sets the scale of the print output relatively to the original on-screen size of the workbook, expressed in percents.

ToWorksheet

Gets or sets the zero-based index of the last worksheet to print, or -1, to print to the last worksheet in the workbook.

 Public Methods

  Name Description

Print

Overloaded. Prints a Workbook object.

PrintPreview

Overloaded. Displays a print preview form for a workbook.

 See Also