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

djmarsh

Members
  • Posts

    2
  • Joined

  • Last visited

djmarsh'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. I'm trying to use JRXlsExporter in a scala Play project but compilation fails saying the class is broken and that it doesn't have a constructor. I've tried with 6.1.0 and 6.2.0. [error] error while loading JRXlsExporter, class file '/home/darren/eclipse/rms/lib/jasperreports-6.2.0.jar(net/sf/jasperreports/engine/export/JRXlsExporter.class)' is broken [error] (class java.lang.NullPointerException/null) [error] /home/darren/eclipse/rms/app/Utils/JReport.scala:80: net.sf.jasperreports.engine.export.JRXlsExporter does not have a constructor [error] val rptExporter = new JRXlsExporter() I'm going off this example (updated to use setExporterImport/Export instead of setParameters) and the API also shows it having a constructor. I switched to JRRtfExporter and it works fine, but JRXlsExporter fails. http://www.tutorialspoint.com/jasper_reports/jasper_exporting_reports.htm Scala code: var rpt: Array[byte] = null val rptExporter = new JRXlsExporter() val rptStream = new ByteArrayOutputStream() rptExporter.setExporterInput(new SimpleExporterInput(rptPrint)) rptExporter.setExporterOutput(new SimpleOutputStreamExporterOutput(rptStream)) rptExporter.exportReport() rpt = rptStream.toByteArray()
  2. I have a report created in 5.6.0 which was working fine. It has 5 sections implemented as subreports. One subreport in the detail section and the rest in separate group footers. Each group footer band had a page break element at the top to force a new page since the "Start New Page" option for the band doesn't work. This was the only way I could find to get working page breaks between subsections. I'm now trying the report with Jasper Studio 6.0.3, Eclipse Juno, and only the page break in the first footer band works. I've tried moving the others above/below the subreports but they still don't work. I've tried moving subreports into the same band with a break element between them but the page breaks don't work and the subreports all print overlapped on the one page. So how am I supposed to get a page break between subreports if "Start New Page" doesn't work and neither do break elements? Maybe I should put the page break at the top of the header in each subreport?
×
×
  • Create New...