public interface SPrintSetup
Modifier and Type | Interface and Description |
---|---|
static class |
SPrintSetup.PaperSize |
Modifier and Type | Method and Description |
---|---|
double |
getBottomMargin() |
int |
getCommentsMode() |
int |
getErrorPrintMode() |
SFooter |
getEvenFooter() |
SHeader |
getEvenHeader() |
SFooter |
getFirstFooter() |
SHeader |
getFirstHeader() |
int |
getFitHeight() |
int |
getFitWidth() |
SFooter |
getFooter() |
double |
getFooterMargin() |
SHeader |
getHeader() |
double |
getHeaderMargin() |
double |
getLeftMargin() |
int |
getPageStart() |
SPrintSetup.PaperSize |
getPaperSize() |
String |
getPrintArea() |
CellRegion |
getRepeatingColumnsTitle() |
CellRegion |
getRepeatingRowsTitle() |
double |
getRightMargin() |
int |
getScale() |
double |
getTopMargin() |
boolean |
isAlignWithMargins() |
boolean |
isDifferentFirstPage() |
boolean |
isDifferentOddEvenPage() |
boolean |
isHCenter() |
boolean |
isLandscape() |
boolean |
isLeftToRight() |
boolean |
isPrintGridlines() |
boolean |
isPrintHeadings() |
boolean |
isScaleWithDoc() |
boolean |
isVCenter() |
void |
setAlignWithMargins(boolean flag)
Set true to align header/footer with page margins.
|
void |
setBottomMargin(double inches) |
void |
setCommentsMode(int mode)
Set how to print comments:
0: none
1: at end of sheet
2: as displayed on the sheet
|
void |
setDifferentFirstPage(boolean flag)
Set true to print first page with special header and footer for first
page;
getFirstHeader() and getFirstFooter() . |
void |
setDifferentOddEvenPage(boolean flag)
Set true to print even page with special header and footer for even
page;
getEvenHeader() and getEvenFooter() . |
void |
setErrorPrintMode(int mode)
Set how to handle errors in the cell data;
0: print errors as displayed on the sheet
1: print errors as blank
2: print errors as dashes ("--")
3: print errors as "#N/A".
|
void |
setEvenFooter(SFooter footer)
Set even page footer; valid only if
isDifferentOddEvenPage() is true. |
void |
setEvenHeader(SHeader header)
Set even page footer; valid only if
isDifferentOddEvenPage() is true. |
void |
setFirstFooter(SFooter footer)
Set first page footer; valid only if
isDifferentFirstPage() is true. |
void |
setFirstHeader(SHeader header)
Set first page footer; valid only if
isDifferentFirstPage() is true. |
void |
setFitHeight(int numPages)
Set the number of pages the sheet height
is fit to.
|
void |
setFitWidth(int numPages)
Set the number of pages the sheet width
is fit to.
|
void |
setFooter(SFooter footer)
Set general footer or odd page footer.
|
void |
setFooterMargin(double inches) |
void |
setHCenter(boolean center)
Set true to print sheet center horizontally on page.
|
void |
setHeader(SHeader header)
Set general Header or odd page header.
|
void |
setHeaderMargin(double inches) |
void |
setLandscape(boolean landscape)
Set true to print in landscape orientation.
|
void |
setLeftMargin(double inches) |
void |
setLeftToRight(boolean flag)
Set true to output multiple pages in the order of left-to-right first
and then top-to-bottom; false in the order of top-to-bottom first and
then left-to-right.
|
void |
setPageStart(int start) |
void |
setPaperSize(SPrintSetup.PaperSize size) |
void |
setPrintArea(String formula)
Set the print area as an area formula; e.g.
|
void |
setPrintGridlines(boolean enable) |
void |
setPrintHeadings(boolean flag)
Set true to also out row and column headings.
|
void |
setRepeatingColumnsTitle(int firstCol,
int lastCol)
Set the first column of the repeat title columns for each left-to-right
pages.
|
void |
setRepeatingRowsTitle(int firstRow,
int lastRow)
Set the first row of the repeat title rows for each top-to-bottom pages.
|
void |
setRightMargin(double inches) |
void |
setScale(int scale) |
void |
setScaleWithDoc(boolean flag)
Set true to scale header/footer with document.
|
void |
setTopMargin(double inches) |
void |
setVCenter(boolean vcenter)
Set true to print sheet center vertically on page.
|
boolean isPrintGridlines()
void setPrintGridlines(boolean enable)
double getHeaderMargin()
void setHeaderMargin(double inches)
double getFooterMargin()
void setFooterMargin(double inches)
double getLeftMargin()
void setLeftMargin(double inches)
double getRightMargin()
void setRightMargin(double inches)
double getTopMargin()
void setTopMargin(double inches)
double getBottomMargin()
void setBottomMargin(double inches)
void setPaperSize(SPrintSetup.PaperSize size)
SPrintSetup.PaperSize getPaperSize()
void setLandscape(boolean landscape)
landscape
- boolean isLandscape()
void setScale(int scale)
scale
- must be between 10 ~ 400 (inclusive).int getScale()
void setHeader(SHeader header)
header
- SHeader getHeader()
void setEvenHeader(SHeader header)
isDifferentOddEvenPage()
is true.header
- SHeader getEvenHeader()
void setFirstHeader(SHeader header)
isDifferentFirstPage()
is true.header
- SHeader getFirstHeader()
void setFooter(SFooter footer)
footer
- SFooter getFooter()
void setEvenFooter(SFooter footer)
isDifferentOddEvenPage()
is true.footer
- SFooter getEvenFooter()
void setFirstFooter(SFooter footer)
isDifferentFirstPage()
is true.footer
- SFooter getFirstFooter()
void setDifferentOddEvenPage(boolean flag)
getEvenHeader()
and getEvenFooter()
.flag
- boolean isDifferentOddEvenPage()
void setDifferentFirstPage(boolean flag)
getFirstHeader()
and getFirstFooter()
.flag
- boolean isDifferentFirstPage()
void setScaleWithDoc(boolean flag)
flag
- boolean isScaleWithDoc()
void setAlignWithMargins(boolean flag)
flag
- boolean isAlignWithMargins()
void setHCenter(boolean center)
center
- boolean isHCenter()
void setVCenter(boolean vcenter)
vcenter
- boolean isVCenter()
void setPageStart(int start)
start
- int getPageStart()
void setFitWidth(int numPages)
int getFitWidth()
void setFitHeight(int numPages)
pages
- int getFitHeight()
void setPrintArea(String formula)
formula
- String getPrintArea()
void setRepeatingRowsTitle(int firstRow, int lastRow)
formula
- CellRegion getRepeatingRowsTitle()
void setRepeatingColumnsTitle(int firstCol, int lastCol)
formula
- CellRegion getRepeatingColumnsTitle()
void setPrintHeadings(boolean flag)
flag
- boolean isPrintHeadings()
void setCommentsMode(int mode)
mode
- int getCommentsMode()
void setErrorPrintMode(int mode)
mode
- int getErrorPrintMode()
void setLeftToRight(boolean flag)
flag
- boolean isLeftToRight()
Copyright © 2020. All rights reserved.