java - 使用 JasperReports 导出到 Excel : How to add AutoFilter for columns

标签 java jasper-reports export-to-excel autofilter

我使用此代码创建 MS Excel 格式的报告:

JRXlsExporter exporter = new JRXlsExporter();

从那里我不知道是否可以告诉 JasperReports 在每列上应用自动过滤器。

最佳答案

我遇到了同样的问题,即在我的电子表格(.xls)中,我想向所有列(15)添加自动过滤器,因此我添加了一个属性(属性表达式)name = net.sf.jasperreports.export .xls.auto.filter 和第一个列标题处的值为“Start”,以及最后一个列标题处的值为 End 的相同属性,并且它有效。

关于java - 使用 JasperReports 导出到 Excel : How to add AutoFilter for columns,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32601479/

相关文章:

debugging - 如何调试 jasper 报告?

jasper-reports - 如何在Jasper报告中动态设置isIgnorePagination?

jasper-reports - 为什么我在 JasperServer 6.0.1 上收到调度程序无效日期错误?

php - 从 PHP、mysql(页面中的多个查询)导出到 excel,代码无法正常运行?

c# - 如果使用 C# 的特定单元格为 "ReadOnly",如何使用 DataReader 在 Excel 单元格中写入

Java - 如何在 web 中获取 XML 内容

java - 向 JHipster Cloud application.yml 添加属性导致注册表配置失败

php - 如何使用php保护列后导出Excel文件

Java Lombok 库 : builder annotation issues with Inheritance

java - 从 BufferedReader 读取