Interface ExcelExporterDelegate
public interface ExcelExporterDelegate
Provides the internal interface for exporting Excel documents.
This is an internal class that is not to be used and may change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new Excel grid.generateXLS
(IContext context, IMendixObject fileObject, String fileName, List<IExcelGrid> grids) Generates an Excel file from the given grids.generateXLS
(IContext context, IMendixObject fileObject, String fileName, List<String> oqlQueries, boolean autoSizeColumns, List<String> headerNames) Generates an Excel file from the given OQL queries.
-
Method Details
-
generateXLS
IMendixObject generateXLS(IContext context, IMendixObject fileObject, String fileName, List<IExcelGrid> grids) throws CoreException Generates an Excel file from the given grids.- Parameters:
context
- the context to use for access controlfileObject
- the FileDocument objectfileName
- the file namegrids
- the grids to be converted- Returns:
- the resulting FileDocument object containing the report
- Throws:
CoreException
- if generating the Excel file failed
-
generateXLS
IMendixObject generateXLS(IContext context, IMendixObject fileObject, String fileName, List<String> oqlQueries, boolean autoSizeColumns, List<String> headerNames) throws CoreException Generates an Excel file from the given OQL queries.- Parameters:
context
- the context to use for access controlfileObject
- the FileDocument objectfileName
- the file nameoqlQueries
- the OQL queriesautoSizeColumns
- indicates whether to size columns automaticallyheaderNames
- the column names- Returns:
- the resulting FileDocument object containing the report
- Throws:
CoreException
- if generating the Excel file failed
-
createExcelGrid
IExcelGrid createExcelGrid()Creates a new Excel grid.- Returns:
- the Excel grid
-