Jump to content

billy.halejr

Members
  • Posts

    1
  • Joined

  • Last visited

billy.halejr'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 can't get properties to export to PDF reports. The properties arer set in default.jasperreports.properties. I have java code that reads them and the properties are correct. I also have java code that sets thre properties I'm interested in setting but when the report is output, those properties are not present. I am trying to make the reports 508 compliant. I am exporting the report as follows: JasperReportsContext jasperReportsContext = DefaultJasperReportsContext.getInstance(); JRPdfExporter exporter = new JRPdfExporter(jasperReportsContext); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.exportReport(); Is there another way of exporting so that these properties are passed to the report? The properties I am wanting to pass to the report are: net.sf.jasperreports.export.pdf.metadata.title=VHIC (this gets passed) net.sf.jasperreports.export.pdf.display.metadata.title=true (not passed) net.sf.jasperreports.export.pdf.tagged=true (this gets passed) net.sf.jasperreports.export.pdf.tag.language=EN-US (not passed)
×
×
  • Create New...