[]
Excel.IO
• new IO()
Represents an excel import and export class.
▸ open(file
, successCallBack
, errorCallBack?
, options?
): void
Imports an excel file.
Name | Type | Description |
---|---|---|
file |
Blob |
The excel file. |
successCallBack |
Function |
Call this function after successfully loading the file. function (json) . |
errorCallBack? |
Function |
Call this function if an error occurs. The exception parameter object structure { errorCode: GC.Spread.Excel.IO.ErrorCode, errorMessage: string}. |
options? |
any |
- |
void
▸ registerMaxDigitWidth(fontFamily
, fontSize
, maxDigitWidth
): void
Register a unknown max digit width info to ExcelIO.
Name | Type | Description |
---|---|---|
fontFamily |
string |
The font family of default style's font. |
fontSize |
number |
The font size of default style's font(in point). |
maxDigitWidth |
number |
The max digit width of default style's font. |
void
▸ save(json
, successCallBack
, errorCallBack?
, options?
): void
Creates and saves an excel file with the SpreadJS json.
Name | Type | Description |
---|---|---|
json |
string | object |
The spread sheets json object, or string. |
successCallBack |
Function |
Call this function after successfully exporting the file. function (blob) . |
errorCallBack? |
Function |
- |
options? |
any |
- |
void