Constructor Summary |
---|
SheetRender(worksheet, options)
the construct of SheetRender, need worksheet and ImageOrPrintOptions as params |
Property Getters/Setters Summary | ||
---|---|---|
function | getPageCount() | |
Gets the total page count of current worksheet.
|
||
function | getPageScale() | |
Gets calculated page scale of the sheet.
Returns the set scale if |
Method Summary | ||
---|---|---|
function | getPageSizeInch(pageIndex) | |
Get page size in inch of output image.
|
||
function | toImage(pageIndex, fileName) | |
Render certain page to a file.
|
||
function | toPrinter(printerName) | |
Render worksheet to Printer
|
||
function | toPrinter(printerName, jobName) | |
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 getPageSizeInch(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, jobName)
printerName: String
- the name of the printer , for example: "Microsoft Office Document Image Writer"jobName: String
- set the print job name