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

bobc02

Members
  • Posts

    5
  • Joined

  • Last visited

bobc02's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. I'm using Java 8 with the net.sf.jasperreports.export.SimplePdfReportConfiguration class to generate a PDF from a template. All is working fine, except the when I exportConfig.setMetadataTitle("Invoice 29Sep2019 Example Co., Inc.") it does not get set. When viewing the downloaded PDF properties, the Title is empty. See scrn shot below. Plus, the name given to the PDF looks like a UUID. For example, 2a7f08fa-f6d1-4a0c-9cfe-714db849a124.pdf. Any ideas? Thanks, Java Code: JRDataSource dataSource = getDataSource(invoiceDOList); JasperReport report = getReport(templateXML); JasperPrint jasperPrint = JasperFillManager.fillReport(report, null, dataSource); JRPdfExporter exporter = new JRPdfExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); SimplePdfReportConfiguration reportConfig = new SimplePdfReportConfiguration(); reportConfig.setSizePageToContent(true); reportConfig.setForceLineBreakPolicy(false); SimplePdfExporterConfiguration exportConfig = new SimplePdfExporterConfiguration(); exportConfig.setMetadataAuthor("BobC"); exportConfig.setMetadataTitle("Invoice 29Sep2019 Example Co., Inc."); exportConfig.setAllowedPermissionsHint("PRINTING"); exporter.setConfiguration(reportConfig); exporter.setConfiguration(exportConfig);[/code]PDF Properties Scrn Shot:
  2. Thanks Sherman, the FirstJasper provides a very good example of how to structure a template with an image. I'll use it. The sourceforge link helps me get a handle on some of the available resources. I did sign up for the trial sandbox, but the Confirm site has been down all day. I'll keep trying. Bob
  3. Thanks for pointing out the jasperserver-pro mistake. I had tried both, but mistakenly posted the wrong screen shot. OK, I'll drop trying to use a demo server. Thought it would be easy. Frankly, I have 3 templates to create, and probably never any others. I was trying to find a demo template for an invoice that uses an image (e.g. logo) to test out my Spring implementation of a JR PDF generator, which works fine with a template not having an image. I'm not finding any guides out there on how to manually write a template, so I installed the community version of Studio hoping to view some templates in action. Thanks.
  4. I forgot to mention, the missing ClientQueryMapperProvider.class is clearly in the com.jaspersoft.studio.server_6.9.0.final.jar. I have not yet figured out how the classpath is defined for Studio, but surely it's not including that server jar. I pasted the image showing the jar contents, but I guess Comments can't have images?
  5. I am using Studio v6.9.0. Following the demo server example at https://community.jaspersoft.com/blog/tibco-jaspersoft-online-demo-server, when I do Test Connection I get error java.lang.NoClassDefFoundError: com/jaspersoft/studio/server/protocol/restv2/ClientQueryMapperProvider. I am trying to login to the connection using U/P joeuser/joeuser - as in example. The screen shot below shows what's going on. What am I doing wrong? Thanks,
×
×
  • Create New...