![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.SheetRender
public class SheetRender
Represents a worksheet render which can render worksheet to various images such as (BMP, PNG, JPEG,EMF...)
Constructor Summary | |
---|---|
SheetRender(Worksheet worksheet,
ImageOptions options)
The construct of SheetRender |
Method Summary | |
---|---|
int |
getPageCount()
Get the total page count of current worksheet |
java.awt.image.BufferedImage |
toImage(int pageIndex)
Render certain page to a BufferedImage object. |
boolean |
toImage(int pageIndex,
java.io.OutputStream outputStream)
Render certain page to a outputStream |
boolean |
toImage(int pageIndex,
java.lang.String fileName)
Render certain page to a file |
void |
toPrinter(java.lang.String printerName)
Render worksheet to Printer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SheetRender(Worksheet worksheet, ImageOptions options)
worksheet
- which spreadsheet to be renderedoptions
- properties of output imageImageOptions
Method Detail |
---|
public int getPageCount()
public boolean toImage(int pageIndex, java.lang.String fileName) throws CellsException
pageIndex
- indicate which page is to be renderedfileName
- filename of the output image
CellsException
public boolean toImage(int pageIndex, java.io.OutputStream outputStream) throws CellsException
pageIndex
- indicate which page is to be renderedoutputStream
- the stream of the output image
CellsException
public java.awt.image.BufferedImage toImage(int pageIndex) throws CellsException
pageIndex
- indicate which page is to be rendered
CellsException
public void toPrinter(java.lang.String printerName) throws CellsException
printerName
- the name of the printer, for example: "Microsoft Office Document Image Writer"
CellsException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |