Reputation: 85
I have 20 reports where the header and footer are not at all aligned. Because of that, while doing a CSV export, the file has lot of empty spaces. Is there an easy way to access the design part of the report programatically instead of changing the layout?.
TU
Upvotes: 2
Views: 638
Reputation: 1453
If you do not want the template formatting to affect the CSV export, you shall use JRCsvMetadataExporter which extracts the data but not the formatting. So there won't be any empty spaces if the field has data. The order in which the columns should be printed in CSV can be fed programmatically.
Also to access the template design programmatically you can use JasperDesign object
Upvotes: 2