Add-on Directory

TableExport for Vaadin 8 and Flow - Vaadin Add-on Directory

Export a Grid or TreeGrid to Excel (.xls) or CSV, with outline grouping for hierarchical data. TableExport for Vaadin 8 and Flow - Vaadin Add-on Directory
Exports a Vaadin Grid or TreeGrid to an Excel file (Apache POI) or to CSV and sends it to the browser. Hierarchical data is grouped and outlined in the sheet. Title row, totals row, sheet name, file name and cell styles can be configured. ## Versions * **1.8.0** (Vaadin 8): the version from the fork by Rijad Zuzo ([Tebra/tableexport-for-vaadin](https://github.com/Tebra/tableexport-for-vaadin), 2018) of the original TableExport add-on by Jonathan Nash ([jnash67/tableexport-for-vaadin](https://github.com/jnash67/tableexport-for-vaadin)), unchanged; Java package `com.vaadin.addon.tableexport`. * **1.8.1** (Vaadin 8): 1.8.0 with three bug fixes (numeric cells, totals row, date cells); Java package `com.infraleap.tableexport`. * **2.0.0** (Vaadin 25.3+): 1.8.0 ported to Vaadin Flow, its behaviour and bugs included; Java package `com.infraleap.tableexport`. * **2.0.1** (Vaadin 25.3+): 2.0.0 with the same three bug fixes as 1.8.1. ## Usage (Vaadin Flow) A Flow column does not give out its value provider, so the exported columns are registered with theirs: ```java Grid grid = new Grid<>(); DefaultGridHolder.addExportableColumn(grid, Person::getName, String.class).setHeader("Name").setKey("name"); new ExcelExport(grid, "Persons", "Staff", "persons.xls", true).export(); ``` The full history and the source are on [GitHub](https://github.com/infraleap-com/tableexport-for-vaadin). ## License Apache License 2.0.
View on GitHub
Issue tracker

TableExport for Vaadin 8 and Flow version 1.8.0
Version 1.8.0 of the fork by Rijad Zuzo (Tebra/tableexport-for-vaadin, July 2018), unchanged: exports the presented value when a column has a presentation provider, formats LocalDate and LocalDateTime cells, aligns cells by their presented value, handles null cell values and columns without an id. Built on the last release of jnash67/tableexport-for-vaadin. History: https://github.com/infraleap-com/tableexport-for-vaadin

TableExport for Vaadin 8 and Flow version 1.8.1
Fixes three bugs of 1.8.0: the type of a cell is the class of the value it shows (1.8.0 wrote numbers as text), the totals row works for grids (1.8.0 failed with a ClassCastException), java.util.Date cells keep their date. Java package is now com.infraleap.tableexport: users of 1.8.0 change their imports, nothing else. Details: https://github.com/infraleap-com/tableexport-for-vaadin/tree/1.8.1

TableExport for Vaadin 8 and Flow version 2.0.0
Port of 1.8.0 to Vaadin Flow (Vaadin 25, Java 21, Apache POI 4.1.2), its behaviour included: like 1.8.0 it writes numbers as text in ExcelExport, fails on the totals row for grids and writes java.util.Date cells as text; 2.0.1 fixes these three bugs. Columns are made exportable with DefaultGridHolder.exportable(column, valueProvider, presentationType); the file is sent as an attachment through a DownloadHandler. Java package com.infraleap.tableexport. Details: https://github.com/infraleap-com/tableexport-for-vaadin/tree/2.0.0

TableExport for Vaadin 8 and Flow version 2.0.1
Fixes three bugs of 2.0.0 (and 1.8.0): the type of a cell is the class of the value it shows (2.0.0 wrote numbers as text), the totals row works for grids (2.0.0 failed with a ClassCastException), java.util.Date cells keep their date. Details: https://github.com/infraleap-com/tableexport-for-vaadin/tree/2.0.1