Search
PrintOptions Members
Methods
 


Defines the attributes of a printed workbook. Use the PrintOptions object returned by the Workbook.getPrintOptions method to set the attributes of a specific workbook.

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

 Public Methods

  Name Description

getDocumentName

Gets the name of the printed document.

getEnableGridLines

Gets a value indicating whether to print the grid lines.

getEnableObjects

Gets a value indicating whether to print drawing objects.

getFromWorksheet

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

getHeaderFormat

Gets the format of page headers.

getMargins

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

getPageOrder

Gets the order of printed pages.

getScale

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

getToWorksheet

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

setDocumentName

Sets the name of the printed document.

setEnableGridLines

Sets a value indicating whether to print the grid lines.

setEnableObjects

Sets a value indicating whether to print drawing objects.

setFromWorksheet

Sets the zero-based index of the first worksheet to print.

setHeaderFormat

Sets the format of page headers.

setMargins

Sets the margins for the printed pages, expressed in hundredths of an inch.

setPageOrder

Sets the order of printed pages.

setScale

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

setToWorksheet

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

 See Also