Paper size constants have been added for the ones I have access
to. They follow as:
public static final short PRINTER_DEFAULT_PAPERSIZE = 0;
public static final short LETTER_PAPERSIZE = 1;
public static final short LEGAL_PAPERSIZE = 5;
public static final short EXECUTIVE_PAPERSIZE = 7;
public static final short A4_PAPERSIZE = 9;
public static final short A5_PAPERSIZE = 11;
public static final short ENVELOPE_10_PAPERSIZE = 20;
public static final short ENVELOPE_DL_PAPERSIZE = 27;
public static final short ENVELOPE_CS_PAPERSIZE = 28;
public static final short ENVELOPE_MONARCH_PAPERSIZE = 37;
| Modifier and Type | Field and Description |
|---|---|
| pack-priv PrintSetupRecord |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public short | Returns: number of copiesImplements org. Returns the number of copies. |
| public boolean | Returns: draft modeImplements org. Returns the draft mode. |
| public short | Returns: number of pages high to fit the sheet inImplements org. Returns the number of pages high to fit the sheet in. |
| public short | Returns: number of pages wide to fit sheet inImplements org. Returns the number of pages wide to fit sheet in. |
| public double | Returns: footer marginImplements org. Returns the footer margin. |
| public double | Returns: header marginImplements org. Returns the header margin. |
| public short | Returns: horizontal resolutionImplements org. Returns the horizontal resolution. |
| public boolean | Returns: landscape modeImplements org. Returns the landscape mode. |
| public boolean | Returns: left to right print orderImplements org. Returns the left to right print order. |
| public boolean | Returns: black and white settingImplements org. Returns the black and white setting. |
| public boolean | Returns: no orientationImplements org. Returns the no orientation. |
| public boolean | Returns: print notesImplements org. Returns the print notes. |
| public short | |
| public short | Returns: page startImplements org. Returns the page start. |
| public short | Returns: paper sizeImplements org. Returns the paper size. |
| public short | Returns: scaleImplements org. Returns the scale. |
| public boolean | Returns: use page numbersImplements org. Returns the use page numbers. |
| public boolean | Returns: valid settingsImplements org. Returns the valid settings. |
| public short | Returns: vertical resolutionImplements org. Returns the vertical resolution. |
| public void | setCopies(short
number of copies copies)Implements org. Sets the number of copies. |
| public void | setDraft(boolean
draft d)Implements org. Set whether it is in draft mode |
| public void | setFitHeight(short
the number of pages height)Implements org. Set the number of pages high to fit the sheet in |
| public void | setFitWidth(short
the number of pages width)Implements org. Set the number of pages wide to fit the sheet in |
| public void | setFooterMargin(double
footer margin footermargin)Implements org. Sets the footer margin. |
| public void | setHeaderMargin(double
header margin headermargin)Implements org. Sets the header margin. |
| public void | setHResolution(short
horizontal resolution resolution)Implements org. Sets the horizontal resolution. |
| public void | setLandscape(boolean
landscape ls)Implements org. Set whether to print in landscape |
| public void | setLeftToRight(boolean
left to right ltor)Implements org. Set whether to go left to right or top down in ordering |
| public void | setNoColor(boolean
Black and white mono)Implements org. Set whether it is black and white |
| public void | setNoOrientation(boolean
Orientation. orientation)Implements org. Set no orientation. |
| public void | setNotes(boolean
print the notes printnotes)Implements org. Print the include notes |
| public void | |
| public void | setPageStart(short
the page numbering start start)Implements org. Set the page numbering start. |
| public void | setPaperSize(short
the paper size. size)Implements org. Set the paper size. |
| public void | setScale(short
the scale to use scale)Implements org. Set the scale. |
| public void | setUsePage(boolean
Use page start page)Implements org. Set whether to use page start |
| public void | setValidSettings(boolean
Valid valid)Implements org. Valid settings. |
| public void | setVResolution(short
vertical resolution resolution)Implements org. Sets the vertical resolution. |
| printSetupRecord | back to summary |
|---|---|
| pack-priv PrintSetupRecord printSetupRecord | |
| HSSFPrintSetup | back to summary |
|---|---|
| protected HSSFPrintSetup(PrintSetupRecord printSetupRecord) Constructor. Takes the low level print setup record.
| |
| getCopies | back to summary |
|---|---|
| public short getCopies() Implements org. Returns the number of copies.
| |
| getDraft | back to summary |
|---|---|
| public boolean getDraft() Implements org. Returns the draft mode.
| |
| getFitHeight | back to summary |
|---|---|
| public short getFitHeight() Implements org. Returns the number of pages high to fit the sheet in.
| |
| getFitWidth | back to summary |
|---|---|
| public short getFitWidth() Implements org. Returns the number of pages wide to fit sheet in.
| |
| getFooterMargin | back to summary |
|---|---|
| public double getFooterMargin() Implements org. Returns the footer margin.
| |
| getHeaderMargin | back to summary |
|---|---|
| public double getHeaderMargin() Implements org. Returns the header margin.
| |
| getHResolution | back to summary |
|---|---|
| public short getHResolution() Implements org. Returns the horizontal resolution.
| |
| getLandscape | back to summary |
|---|---|
| public boolean getLandscape() Implements org. Returns the landscape mode.
| |
| getLeftToRight | back to summary |
|---|---|
| public boolean getLeftToRight() Implements org. Returns the left to right print order.
| |
| getNoColor | back to summary |
|---|---|
| public boolean getNoColor() Implements org. Returns the black and white setting.
| |
| getNoOrientation | back to summary |
|---|---|
| public boolean getNoOrientation() Implements org. Returns the no orientation.
| |
| getNotes | back to summary |
|---|---|
| public boolean getNotes() Implements org. Returns the print notes.
| |
| getOptions | back to summary |
|---|---|
| public short getOptions() Returns the bit flags for the options.
| |
| getPageStart | back to summary |
|---|---|
| public short getPageStart() Implements org. Returns the page start.
| |
| getPaperSize | back to summary |
|---|---|
| public short getPaperSize() Implements org. Returns the paper size.
| |
| getScale | back to summary |
|---|---|
| public short getScale() Implements org. Returns the scale.
| |
| getUsePage | back to summary |
|---|---|
| public boolean getUsePage() Implements org. Returns the use page numbers.
| |
| getValidSettings | back to summary |
|---|---|
| public boolean getValidSettings() Implements org. Returns the valid settings.
| |
| getVResolution | back to summary |
|---|---|
| public short getVResolution() Implements org. Returns the vertical resolution.
| |
| setCopies | back to summary |
|---|---|
| public void setCopies(short copies) Implements org. Sets the number of copies.
| |
| setDraft | back to summary |
|---|---|
| public void setDraft(boolean d) Implements org. Set whether it is in draft mode
| |
| setFitHeight | back to summary |
|---|---|
| public void setFitHeight(short height) Implements org. Set the number of pages high to fit the sheet in
| |
| setFitWidth | back to summary |
|---|---|
| public void setFitWidth(short width) Implements org. Set the number of pages wide to fit the sheet in
| |
| setFooterMargin | back to summary |
|---|---|
| public void setFooterMargin(double footermargin) Implements org. Sets the footer margin.
| |
| setHeaderMargin | back to summary |
|---|---|
| public void setHeaderMargin(double headermargin) Implements org. Sets the header margin.
| |
| setHResolution | back to summary |
|---|---|
| public void setHResolution(short resolution) Implements org. Sets the horizontal resolution.
| |
| setLandscape | back to summary |
|---|---|
| public void setLandscape(boolean ls) Implements org. Set whether to print in landscape
| |
| setLeftToRight | back to summary |
|---|---|
| public void setLeftToRight(boolean ltor) Implements org. Set whether to go left to right or top down in ordering
| |
| setNoColor | back to summary |
|---|---|
| public void setNoColor(boolean mono) Implements org. Set whether it is black and white
| |
| setNoOrientation | back to summary |
|---|---|
| public void setNoOrientation(boolean orientation) Implements org. Set no orientation. ?
| |
| setNotes | back to summary |
|---|---|
| public void setNotes(boolean printnotes) Implements org. Print the include notes
| |
| setOptions | back to summary |
|---|---|
| public void setOptions(short options) Sets the options flags. Not advisable to do it directly.
| |
| setPageStart | back to summary |
|---|---|
| public void setPageStart(short start) Implements org. Set the page numbering start.
| |
| setPaperSize | back to summary |
|---|---|
| public void setPaperSize(short size) Implements org. Set the paper size.
| |
| setScale | back to summary |
|---|---|
| public void setScale(short scale) Implements org. Set the scale.
| |
| setUsePage | back to summary |
|---|---|
| public void setUsePage(boolean page) Implements org. Set whether to use page start
| |
| setValidSettings | back to summary |
|---|---|
| public void setValidSettings(boolean valid) Implements org. Valid settings. I'm not for sure.
| |
| setVResolution | back to summary |
|---|---|
| public void setVResolution(short resolution) Implements org. Sets the vertical resolution.
| |