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

theonlysood

Members
  • Posts

    2
  • Joined

  • Last visited

theonlysood's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. @hozawa Thanks for the answer. I could use SimplePdfReportConfiguration successfully!
  2. I am using JasperReports for one of my projects in Java to generate PDF reports. My requirement is to export each page in a JasperPrint to separate PDF file Since JRExporterParameter.PAGE_INDEX export parameter is deprecated and I am unable to set configuration. Please help me on how can I specify the page range simply while exporting ? This is my sample code: JRPdfExporter exporter = new JRPdfExporter(DefaultJasperReportsContext.getInstance());SimplePdfExporterConfiguration config = new SimplePdfExporterConfiguration();config.setCreatingBatchModeBookmarks(true);config.setCompressed(true);exporter.setConfiguration(config);[/code]exporter.setExporterInput(SimpleExporterInput.getInstance(printEntry.getValue()));exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(mFile));exporter.exportReport();[/code]Thanks in advance!
×
×
  • Create New...