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

bryan.moore

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by bryan.moore

  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...