Question

I want set sheet name for my xls file when i export from jasper report. I have tried this net.sf.jasperreports.export.xls.sheet.names.all = value. but the value must be set from field that i retreive from database. is it possible? or anyone have tried before?

Was it helpful?

Solution

Yes, you can use something like

<propertyExpression name="net.sf.jasperreports.export.xls.sheet.name">
    <![CDATA[$F{FieldName}]]>
</propertyExpression>

For more details you can checkout http://community.jaspersoft.com/wiki/excel-export-dynamically-set-sheet-names

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top