Constructor Summary |
---|
SheetRender(worksheet, options)
the construct of SheetRender, need worksheet and ImageOrPrintOptions as params |
Property Getters/Setters Summary | ||
---|---|---|
function | getPageCount() | |
Indicate the total page count of current worksheet
|
||
function | getPageScale() | |
Gets calculated page scale of the sheet.
|
Method Summary | ||
---|---|---|
function | getPageSize(pageIndex) | |
Get page size of output image. The size unit is in point.
|
||
function | toImage(pageIndex, fileName) | |
Render certain page to a file.
|
||
function | toPrinter(PrinterName) | |
Render worksheet to Printer
|
||
function | toPrinter(PrinterName, DocumentName) | |
Render worksheet to Printer
|
function SheetRender(worksheet, options)
worksheet: Worksheet
- Indicate which spreadsheet to be rendered.options: ImageOrPrintOptions
- ImageOrPrintOptions contains some property of output imagefunction getPageCount()
function getPageScale()
function getPageSize(pageIndex)
pageIndex: Number
- The page index is based on zero.function toImage(pageIndex, fileName)
pageIndex: Number
- indicate which page is to be convertedfileName: String
- filename of the output imagefunction toPrinter(PrinterName)
PrinterName: String
- the name of the printer , for example: "Microsoft Office Document Image Writer"function toPrinter(PrinterName, DocumentName)
PrinterName: String
- the name of the printer , for example: "Microsoft Office Document Image Writer"DocumentName: String
- set the print job name