在JasperReports 4.0.5中执行CSV导出时删除组 [英] removing group while doing CSV export in JasperReports 4.0.5

查看:149
本文介绍了在JasperReports 4.0.5中执行CSV导出时删除组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JasperReports 4.0.5。尝试在导出为CSV时抑制组页脚和标题。
我尝试过使用

net.sf.jasperreports.export。{format} .exclude.origin。{suffix}。 {arbitrary_name} 属性。

I am using the JasperReports 4.0.5. Trying to suppress group footer and headers while exporting to CSV. I've tried the using of
net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name} property.

它不起作用。
有什么建议吗?

It didn't work. Any suggestions?

TU

推荐答案

隐藏只有 groupHeader 带你应该将这两个属性(两行)添加到 jrxml 文件中,例如:

For hiding only the groupHeader band you should add this two properties (both lines) to the jrxml file, for example:

<property name="net.sf.jasperreports.export.csv.exclude.origin.band.1" value="groupHeader"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.group.1" value="GroupExpenses"/>

隐藏 groupHeader groupFooter 乐队你应该将所有这些属性添加到 jrxml 文件中:

For hiding both groupHeader and groupFooter bands you should add all this properties to jrxml file:

<property name="net.sf.jasperreports.export.csv.exclude.origin.band.1" value="groupHeader"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.group.1" value="GroupExpenses"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.2" value="groupFooter"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.group.2" value="GroupExpenses"/>

在两个样本中,组名称为 GroupExpenses

In both samples the group name is GroupExpenses.

<group name="GroupExpenses">






有关详细信息,请查看如何在导出到XLS时禁止页眉和页脚?主题。

这篇关于在JasperReports 4.0.5中执行CSV导出时删除组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆