[]
IWorkbook
static IFontProvider
static String
Workbook()
Workbook(WorkbookOptions options)
Workbook(String licenseKey,
WorkbookOptions options)
static void
static void
AddCustomFunction(CustomFunction func,
boolean canOverride)
void
addDataSource(String name,
Object dataSource)
void
void
void
convertBarcodeToPicture(ImageType imageType)
void
dirty()
fromJson(InputStream stream)
fromJson(InputStream stream,
DeserializationOptions deserializationOptions)
fromJson(String json,
DeserializationOptions deserializationOptions)
void
fromSjsJson(InputStream stream)
void
fromSjsJson(InputStream stream,
SjsOpenOptions openOptions)
void
fromSjsJson(String json)
void
fromSjsJson(String json,
SjsOpenOptions openOptions)
generateReport(IWorksheet... worksheets)
boolean
boolean
boolean
boolean
boolean
final IGraphicsInfo
getName()
getNames()
INames
collection that represents the workbook-specified names.static String[]
getNames(InputStream fileStream)
static String[]
IExcelOptions
object that represents some settings to control workbook behavior.getPath()
boolean
boolean
boolean
final IWorksheets
boolean
ISlicerCaches
object associated with the workbook.static IJsonSerializer
getTheme()
static IJsonSerializer
static IWebRequestHandler
static Object[][]
importData(InputStream fileStream,
String sourceName)
static Object[][]
importData(InputStream fileStream,
String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
static Object[][]
importData(String fileName,
String sourceName)
static Object[][]
importData(String fileName,
String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
boolean
isEncryptedFile(InputStream fileStream)
boolean
isEncryptedFile(String fileName)
final void
open(InputStream fileStream)
void
open(InputStream fileStream,
OpenFileFormat fileFormat)
void
open(InputStream fileStream,
OpenOptionsBase options)
void
open(InputStream fileStream,
String password)
open(InputStream,OpenOptionsBase)
insteadvoid
open(String fileName,
DeserializationOptions deserializationOptions)
void
open(String fileName,
OpenFileFormat fileFormat)
void
open(String fileName,
OpenOptionsBase options)
void
open(String,OpenOptionsBase)
insteadvoid
void
processTemplate(CancellationToken cancellationToken)
void
protect()
void
protect(boolean structure)
void
protect(boolean structure,
boolean windows)
void
void
void
void
save(OutputStream outputStream)
void
save(OutputStream fileStream,
SaveFileFormat fileFormat)
void
save(OutputStream fileStream,
SaveOptionsBase options)
void
save(OutputStream outputStream,
String password)
save(OutputStream,SaveOptionsBase)
insteadvoid
void
save(String fileName,
SaveFileFormat fileFormat)
void
save(String fileName,
SaveOptionsBase options)
void
save(String,SaveOptionsBase)
insteadvoid
setAllowDynamicArray(boolean value)
IRange.setFormula2(String)
to set dynamic array formula.void
void
setAutoParse(boolean value)
void
setAutoRoundValue(boolean value)
void
setCulture(Locale value)
void
setDefaultTableStyle(String value)
ITableStyleCollection
collectionthat is used as the default TableStyle.void
setDeferUpdateDirtyState(boolean value)
void
setEnableCalculation(boolean value)
final void
setGraphicsInfo(IGraphicsInfo value)
static void
SetLicenseFile(String licenseFilePath)
static void
SetLicenseKey(String key)
void
void
void
setReferenceStyle(ReferenceStyle value)
void
setResetAdjacentRangeBorder(boolean value)
void
setShowPivotTableFieldList(boolean value)
static void
void
static void
static void
setWebRequestHandler(IWebRequestHandler webRequestHandler)
toJson()
toJson(SerializationOptions serializationOptions)
void
toJson(OutputStream stream)
void
toJson(OutputStream stream,
SerializationOptions serializationOptions)
toSjsJson(SjsSaveOptions options)
void
toSjsJson(OutputStream stream)
void
toSjsJson(OutputStream stream,
SjsSaveOptions options)
void
void
void
updateExcelLink(String name)
void
updateExcelLink(String name,
IWorkbook sourceWorkbook)
void
void
options
- The workbook options. Important: For licenses of the Chinese market, use SetLicenseFile
orset license in the GCEXCEL_JAVA_DEPLOY_LICENSE_V7
environment variable instead.
licenseKey
- license key Important: For licenses of the Chinese market, use SetLicenseFile
orset license in the GCEXCEL_JAVA_DEPLOY_LICENSE_V7
environment variable instead.
licenseKey
- license key.options
- The workbook options.IRange.getFormula2()
to get dynamic array formula.getAllowDynamicArray
in interface IWorkbook
IRange.setFormula2(String)
to set dynamic array formula.setAllowDynamicArray
in interface IWorkbook
getDeferUpdateDirtyState
in interface IWorkbook
setDeferUpdateDirtyState
in interface IWorkbook
getFullName
in interface IWorkbook
open(String,OpenOptionsBase)
insteadopen(InputStream,OpenOptionsBase)
insteadsave(String,SaveOptionsBase)
insteadsave(OutputStream,SaveOptionsBase)
insteadgetAfterSaveEvent
in interface IWorkbook
getBeforeSaveEvent
in interface IWorkbook
getNewSheetEvent
in interface IWorkbook
getOpenedEvent
in interface IWorkbook
getSheetActivateEvent
in interface IWorkbook
getSheetBeforeDeleteEvent
in interface IWorkbook
getSheetChangeEvent
in interface IWorkbook
getSheetDeactivateEvent
in interface IWorkbook
getSheetSelectionChange
in interface IWorkbook
IExcelOptions
object that represents some settings to control workbook behavior.getOptions
in interface IWorkbook
getBuiltInDocumentProperties
in interface IWorkbook
getCustomDocumentProperties
in interface IWorkbook
getCustomViews
in interface IWorkbook
getWriteProtection
in interface IWorkbook
getSignatures
in interface IWorkbook
value
- The JSON serializer for tag custom type.value
- The JSON serializer for custom type.getAutoParse
in interface IWorkbook
setAutoParse
in interface IWorkbook
getAutoRoundValue
in interface IWorkbook
setAutoRoundValue
in interface IWorkbook
getBookView
in interface IWorkbook
getProtectStructure
in interface IWorkbook
getProtectWindows
in interface IWorkbook
getReferenceStyle
in interface IWorkbook
setReferenceStyle
in interface IWorkbook
getWorksheets
in interface IWorkbook
getActiveSheet
in interface IWorkbook
getIconSets
in interface IWorkbook
getDefaultTableStyle
in interface IWorkbook
ITableStyleCollection
collectionthat is used as the default TableStyle.setDefaultTableStyle
in interface IWorkbook
getCulture
in interface IWorkbook
The culture must contain both country/region and language. For example:
setCulture
in interface IWorkbook
getEnableCalculation
in interface IWorkbook
setEnableCalculation
in interface IWorkbook
func
- the custom function instance.func
- the custom function instance.canOverride
- override the exist function.getPivotCaches
in interface IWorkbook
ISlicerCaches
object associated with the workbook.getSlicerCaches
in interface IWorkbook
getUsedFonts
in interface IWorkbook
getTableStyles
in interface IWorkbook
INames
collection that represents the workbook-specified names.isEncryptedFile
in interface IWorkbook
fileName
- The file name.isEncryptedFile
in interface IWorkbook
fileStream
- The file stream.toJson
in interface IWorkbook
serializationOptions
- the SerializationOptions
object.toJson
in interface IWorkbook
stream
- the output stream.serializationOptions
- the SerializationOptions
object.fromJson
in interface IWorkbook
json
- the JSON.deserializationOptions
- the DeserializationOptions
object.fromJson
in interface IWorkbook
stream
- the streamdeserializationOptions
- the DeserializationOptions
object.fromSjsJson
in interface IWorkbook
json
- The JSON string.fromSjsJson
in interface IWorkbook
json
- The JSON string.openOptions
- The open options for opening SpreadJS .sjs file.fromSjsJson
in interface IWorkbook
stream
- The JSON stream.waitForCalculationToFinish
in interface IWorkbook
webRequestHandler
- the new singleton instance of IWebRequestHandlerfromSjsJson
in interface IWorkbook
stream
- The JSON stream.openOptions
- The open options for opening SpreadJS .sjs file.protect
in interface IWorkbook
structure
- True to protect the structure of the workbook (To prevent otherusers from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, and renaming worksheets).windows
- True to prevent users from moving, resizing, or closing theworkbook window, or hide/unhide windows. This option is available only in Excel 2007, Excel 2010, Excel for Mac 2011, and Excel 2016 for Mac.protect
in interface IWorkbook
password
- Password to protect the workbook.structure
- True to protect the structure of the workbook (To prevent other users from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, and renaming worksheets).windows
- True to prevent users from moving, resizing, or closing the workbook window, or hide/unhide windows. This option is available only in Excel 2007, Excel 2010, Excel for Mac 2011, and Excel 2016 for Mac.addDataSource
in interface IWorkbook
name
- : the alias name of the data source.dataSource
- : Can be object of ResultSet, Custom object and variable.processTemplate
in interface IWorkbook
processTemplate
in interface IWorkbook
cancellationToken
- The token to monitor for cancellation requests.CancellationException
- Throws when the CancellationToken
was canceled.generateReport
in interface IWorkbook
IWorkbook
object.generateReport
in interface IWorkbook
worksheets
- IWorksheet collection that need to be processed.IWorkbook
object.getResetAdjacentRangeBorder
in interface IWorkbook
setResetAdjacentRangeBorder
in interface IWorkbook
value
- True to reset the border of adjacent ranges, false otherwise. Important: For licenses of the Chinese market, use SetLicenseFile
orset license in the GCEXCEL_JAVA_DEPLOY_LICENSE_V7
environment variable instead.
key
- The license key.This method shouldn't be called if your license was purchased from other markets.
licenseFilePath
- The file that contains license keygetGraphicsInfo
in interface IWorkbook
setGraphicsInfo
in interface IWorkbook
getSelectedSheets
in interface IWorkbook
getExcelLinkSources
in interface IWorkbook
updateExcelLinks
in interface IWorkbook
updateExcelLink
in interface IWorkbook
updateExcelLink
in interface IWorkbook
fileName
- The path and name for the file.fileStream
- The fileStream of a workbook.fileName
- The path and name for the file.sourceName
- The name of the source data. The source name could be:fileName
- The path and name for the file.worksheetName
- The name of the worksheet.row
- The first row of the range.column
- The first column of the range.rowCount
- The count of the rows.columnCount
- The count of the columns.fileStream
- The fileStream of a workbook.sourceName
- The name of the source data. The source name could be:fileStream
- The fileStream of a workbook.worksheetName
- The name of the worksheet.row
- The first row of the range.column
- The first column of the range.rowCount
- The count of the rows.columnCount
- The count of the columns.ImageType
of converted image is ImageType.SVG
.convertBarcodeToPicture
in interface IWorkbook
ImageType.EMF
and ImageType.WMF
image types.convertBarcodeToPicture
in interface IWorkbook
imageType
- Specify the ImageType
of converted image.UnsupportedOperationException
- If convert to ImageType.EMF
or ImageType.WMF
image type.getShowPivotTableFieldList
in interface IWorkbook
setShowPivotTableFieldList
in interface IWorkbook
IRange.getFormula2()
to get dynamic array formula.