0
我在我的應用程序中實現了Jasper Reports。但是我必須使它通用?請給我一些建議? 例如,如何在使用jasper報告的泛型中創建jrxml?
<property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.columnHeader" value="columnHeader" />
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.columnFooter" value="columnFooter" />
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.pageFooter" value="pageFooter" />
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.lastPageFooter" value="lastPageFooter" />
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.summary" value="summary" />
<property name="net.sf.jasperreports.export.pdf.force.linebreak.policy" value="true" />
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageFooter" />
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.columnHeader" value="columnHeader" />
<property name="net.sf.jasperreports.export.xls.auto.filter" value="Start" />
<property name="net.sf.jasperreports.export.xls.freeze.column.edge" value="Left" />
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.property.ignore.page.margins" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.font.size.fix.enabled" value="true"/>
<property name="net.sf.jasperreports.export.xls.collapse.row.span" value="true"/>
<property name="net.sf.jasperreports.export.xls.white.page.background" value="false"/>
的代碼這和平是所有JRXML文件常見。我想使它通用如何?
我會建議從iReport開始,看看報告是如何生成的,當iReport知道什麼是需要在XML和什麼是可選的。 –