Jump to content
We've recently updated our Privacy Statement, available here ×

bryan.moore

Members
  • Posts

    2
  • Joined

  • Last visited

bryan.moore's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. We had some code that was working in Jasper Reports Library 4.5, which used filters that were set on the exporter to exclude headers, title... from CSV output: JROriginExporterFilter filter = new JROriginExporterFilter(); filter.addOrigin(new JROrigin(BandTypeEnum.PAGE_HEADER)); filter.addOrigin(new JROrigin(BandTypeEnum.PAGE_FOOTER)); filter.addOrigin(new JROrigin(BandTypeEnum.TITLE)); exporter.setParameter(JRExporterParameter.FILTER, filter); This code is no longer working when we upgraded to Jasper Reports Library 6.19.1. It appears that JRExporterParameter is deprecated, and the way to do this is to set a configuration object on the exporter: exporter.setConfiguration(ExporterConfiguration); Though, I only see a way to get a filter on the configuration, but not set it? https://jasperreports.sourceforge.net/api/net/sf/jasperreports/export/ReportExportConfiguration.html ReportExportConfiguration getExporterFilter() How can I use this same JROriginExporterFilter in order to exclude title, headers, pagination... for CSV exports in 6.19.1? Thanks! -Bryan
×
×
  • Create New...