【发布时间】:2016-07-01 22:15:37
【问题描述】:
我正在使用动态报告来创建报告并且能够创建它。但问题是,当我将其转换为 excel 时,excel 中的单元格显示警告为 Number Stored as Text。因此无法进行任何操作。
这是我的代码
File file = new File("c:/report.xls");
JasperXlsExporterBuilder xlsExporter = export.xlsExporter(file).setDetectCellType(true).setIgnorePageMargins(true)
.setWhitePageBackground(false).setRemoveEmptySpaceBetweenColumns(true);
report.addProperty(JasperProperty.EXPORT_XLS_FREEZE_ROW, "2").ignorePageWidth().ignorePagination().toXls(xlsExporter);
如何消除此错误。
【问题讨论】:
-
你见过this wiki entry吗?
-
@tobi6 但这不是正确的做法。我们不能告诉客户这样做
标签: java jasper-reports dynamic-reports