public class PrintOptions
extends java.lang.Object
PrintOptions object returned
by the Workbook.getPrintOptions() method to set the attributes of a specific workbook.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDocumentName()
Gets the name of the printed document.
|
boolean |
getEnableGridLines()
Gets a value indicating whether to print the grid lines.
|
boolean |
getEnableObjects()
Gets a value indicating whether to print drawing objects.
|
int |
getFromWorksheet()
Gets the zero-based index of the first worksheet to print.
|
java.lang.String |
getHeaderFormat()
Gets the format of page headers.
|
java.awt.Insets |
getMargins()
Gets the margins for the printed pages, expressed in hundredths of an inch.
|
PageOrder |
getPageOrder()
Gets the order of printed pages.
|
float |
getScale()
Gets the scale of the print output relatively to the original
on-screen size of the workbook, expressed in percents.
|
int |
getToWorksheet()
Gets the zero-based index of the last worksheet to print, or -1,
to print to the last worksheet in the workbook.
|
void |
setDocumentName(java.lang.String value)
Sets the name of the printed document.
|
void |
setEnableGridLines(boolean value)
Sets a value indicating whether to print the grid lines.
|
void |
setEnableObjects(boolean value)
Sets a value indicating whether to print drawing objects.
|
void |
setFromWorksheet(int value)
Sets the zero-based index of the first worksheet to print.
|
void |
setHeaderFormat(java.lang.String value)
Sets the format of page headers.
|
void |
setMargins(java.awt.Insets value)
Sets the margins for the printed pages, expressed in hundredths of an inch.
|
void |
setPageOrder(PageOrder value)
Sets the order of printed pages.
|
void |
setScale(float value)
Sets the scale of the print output relatively to the original
on-screen size of the workbook, expressed in percents.
|
void |
setToWorksheet(int value)
Sets the zero-based index of the last worksheet to print, or -1,
to print to the last worksheet in the workbook.
|
public java.lang.String getDocumentName()
public void setDocumentName(java.lang.String value)
public java.awt.Insets getMargins()
public void setMargins(java.awt.Insets value)
public java.lang.String getHeaderFormat()
public void setHeaderFormat(java.lang.String value)
public float getScale()
public void setScale(float value)
public int getFromWorksheet()
public void setFromWorksheet(int value)
public int getToWorksheet()
public void setToWorksheet(int value)
public boolean getEnableGridLines()
public void setEnableGridLines(boolean value)
public boolean getEnableObjects()
public void setEnableObjects(boolean value)
public PageOrder getPageOrder()
public void setPageOrder(PageOrder value)