| 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 | ||
| Constructor Detail |
|---|
function SheetRender(worksheet, options)
worksheet: Worksheet - Indicate which spreadsheet to be rendered.options: ImageOrPrintOptions - ImageOrPrintOptions contains some property of output image| Property Getters/Setters Detail |
|---|
getPageCount : Number | |
function getPageCount() | |
getPageScale : Number | |
function getPageScale() | |
| Method Detail |
|---|
getPageSize | |
function getPageSize(pageIndex) | |
pageIndex: Number - The page index is based on zero.toImage | |
function toImage(pageIndex, fileName) | |
pageIndex: Number - indicate which page is to be convertedfileName: String - filename of the output imagetoPrinter | |
function toPrinter(PrinterName) | |
PrinterName: String - the name of the printer , for example: "Microsoft Office Document Image Writer"toPrinter | |
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