у меня есть dto для коллекции источников данных JasperPrint:
Код: Выделить всё
public static class ChangelogData {
private LocalDate updateDate;
private LocalTime updateTime;
Код: Выделить всё
.updateDate(changelog.getTimestamp() != null ? changelog.getTimestamp().toLocalDate() : null)
.updateTime(changelog.getTimestamp() != null ? changelog.getTimestamp().toLocalTime() : null)
Код: Выделить всё
JRXlsxExporter exporter = new JRXlsxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(os));
SimpleXlsxReportConfiguration xlsxReportConfiguration = new SimpleXlsxReportConfiguration();
xlsxReportConfiguration.setMaxRowsPerSheet(30000);
xlsxReportConfiguration.setDetectCellType(true);
exporter.setConfiguration(xlsxReportConfiguration);
exporter.exportReport();


И что я получил:

Также скажите мне, как я могу включить границы ячеек, почему мои ячейки такие же, как в документе doc в документе Excel?
Подробнее здесь: https://stackoverflow.com/questions/793 ... eport-xlsx
Мобильная версия