Four Js Genero Report Writer
|
Class for configuring Excel (XLS/XLSX) output. More...
Public Types | |
enum | OutputFormat { XLS, XLSX } |
Public Member Functions | |
ExcelRenderer (FormatHandler handler) | |
Creates a ExcelRenderer object that outputs to the given handler object. More... | |
![]() | |
FormatProducer (FormatHandler handler) | |
Creates a FormatProducer object that outputs to the given handler object. More... | |
Static Public Attributes | |
static String | legalCopyright = Version.CLASS_COPYRIGHT |
![]() | |
static String | legalCopyright = Version.CLASS_COPYRIGHT |
Properties | |
OutputFormat | outputFormat [get, set] |
Sets the output format as determined by the outputFormat argument. More... | |
int | fromPage [get, set] |
Sets the first page to be included in the document. fromPage an integer greater than zero and less than or equal to toPage More... | |
int | toPage [get, set] |
Sets the last page (inclusive) to be included in the document. toPage an integer greater than zero and less than or equal to fromPage More... | |
bool | removeWhitespace [get, set] |
Activates whitespace removal if true, columns or rows containing whitespace only are preserved if false. The default value is false . More... | |
bool | ignoreRowAlignment [get, set] |
Sets whether the row alignment of items can be ignored allowing a more compact representation. The default value is false . More... | |
bool | ignoreColumnAlignment [get, set] |
Sets whether the column alignment of items can be ignored allowing a more compact representation. The default value is false . More... | |
bool | removeBackgroundImages [get, set] |
Activates background image removal if true, partially obscured images are preserved if false. The default value is false . More... | |
bool | mergePages [get, set] |
Activates page merging if true, separate sheets for each page are created if false. The default value is false . More... | |
bool | mergeCells [get, set] |
Activates cell merging if true, separate empty cells are created otherwise. The default value is true . More... | |
bool | handleBorders [get, set] |
Activates border handling if true, borders are added to cells when borders are present in the document. Activating border handling may introduce empty rows and columns. The default value is false . More... | |
![]() | |
FormatHandler | handler [get] |
Sets the specified handler as the handler for the output produced by this processor. More... | |
Class for configuring Excel (XLS/XLSX) output.
Fonts are not included in the document since font embedding is not available in the XLS/XLSX formats.
By default a sheet is created for every page in the report. An option exists to merge all pages into one large sheet. Empty lines and columns are stripped from the output.
The focus for the Excel output is on the "computability" of the content. The grid layout doesn't cater for items that span several cells such as borders and background colors. For faithful reproduction consider using the PDFRenderer, SVGRenderer, PostscriptRenderer, Printer or ImageRenderer.
Since the tabular layout does no allow for items to overlap, any items that overlap are replaced by an image containing a painting of the overlapping items. In such a case a warning is issued. An exception of this rule are background images which can be removed from document by using the method removeBackgroundImages.
The XLS output is limited to 65536 row per sheet. Reports exceeding this value will be split into sheets of this size. The memory consumption of the XLS output is linear so that very large sheets can exhaust heap space. The memory consumption of the XSLSX output is constant. Memory is reclaimed on completion of a page.
FourJs.Report.Runtime.ExcelRenderer.ExcelRenderer | ( | FormatHandler | handler | ) |
Creates a ExcelRenderer object that outputs to the given handler object.
handler |
|
getset |
Sets the first page to be included in the document. fromPage
an integer greater than zero and less than or equal to toPage
ArgumentOutOfRangeException | if the above condition is violated. |
|
getset |
Activates border handling if true, borders are added to cells when borders are present in the document. Activating border handling may introduce empty rows and columns. The default value is false
.
|
getset |
Sets whether the column alignment of items can be ignored allowing a more compact representation. The default value is false
.
When set, only those objects that are entirely to the left or entirely to the right each other will go in separate columns. The option reduces the amount of columns thereby loosing the vertical alignment. The topology is not changed so that visually adjacent items remain adjacent.
|
getset |
Sets whether the row alignment of items can be ignored allowing a more compact representation. The default value is false
.
When set, only those objects that are entirely above or entirely below each other will go in separate rows. The option reduces the amount of rows thereby loosing the horizontal alignment. The topology is not changed so that visually stacked items remain stacked.
|
getset |
Activates cell merging if true, separate empty cells are created otherwise. The default value is true
.
|
getset |
Activates page merging if true, separate sheets for each page are created if false. The default value is false
.
|
getset |
Sets the output format as determined by the outputFormat
argument.
|
getset |
Activates background image removal if true, partially obscured images are preserved if false. The default value is false
.
|
getset |
Activates whitespace removal if true, columns or rows containing whitespace only are preserved if false. The default value is false
.
|
getset |
Sets the last page (inclusive) to be included in the document. toPage
an integer greater than zero and less than or equal to fromPage
ArgumentOutOfRangeException | if the above condition is violated. |