Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top