Jump to content
Changes to the Jaspersoft community edition download ×

Timbo2013

Members
  • Posts

    22
  • Joined

  • Last visited

Timbo2013's Achievements

  1. And in preview you can save the report in the format you want... But I think that the subreports and/or data passing are not working unproblematic.
  2. I'm not sure but I think you have to set all subreport "Split Types" to "Prevent". Maybe it's the same problem I had some months ago - I hope it works! =)
  3. Of course you can create PDF files without any server... If it is a simple Java application (Java SE) you might use this: public class MyReport{ static HashMap<String, Object> hm = new HashMap<String, Object>(); public static void main(String[] args) { hm.put("myID" , 1); // Integer hm.put("myName" , "Timbo"); // String hm.put(...); String in = "c:/PATH/TO/YOUR/REPORT.jrxml"; String out = "c:/PATH/TO/YOUR/PDF.pdf"; try { // compile report JasperReport jasperReport = JasperCompileManager.compileReport(in); // fill report JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, hm, new JREmptyDataSource()); // export report to PDF JasperExportManager.exportReportToPdfFile(jasperPrint, out); } catch (JRException e) { e.printStackTrace(); } }}[/code]
  4. My subreport in the header ist only printed once with given input data... On the second page only static elements (lines, static text, ...) are printed. =/ The Checkbox "Print Repeated Values" seems to do nothing... I tried also a lot of other properties but without any success. Any idea or hint...?
  5. Hallo together! I have the same / a similar problem. In the page header I have placed a subreport. On the first page it is printed correctly but on the second page just the static textfields of the subreport are printed - no variables / dynamic textfields... I Tried a lot for example with "Print Repeated Values", "When No Data Type", "Print When Deteil Overflows" and some more... But no luck. =/
  6. I created an SVG file with batik. It can be opend with the browser - looks fine. But how do I get the "needed" byte array...? Do I have to generate a file first or when is the "turn-over-point" ?^^
  7. Same thing here! I tried several ways but all without any success... Best I got was a complete black square instead of any graphic - but this could belong to something else^^
  8. I have created an SVG file with batik in a Java application... In browsers it is displayed correctly and I validated it without any errors. But in iReport (v5.1.0) preview and exported PDF is appearing nothing! =/ see attached SVG file...
  9. Try this:<image scaleImage="RetainShape" hAlign="Center" vAlign="Middle"> <reportElement uuid="0eae3352-7e0c-40fe-a01a-1a3f72b030ac" x="0" y="37" width="195" height="38"/> <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("path/to/the.svg"))]]></imageExpression> </image> (tested with JasperReports v5.2.0 and iReport v5.1.0) Also see: http://community.jaspersoft.com/wiki/how-add-svg-image-your-report-jrxml
  10. Hello bjarkekr, try this:<image scaleImage="RetainShape" hAlign="Center" vAlign="Middle"> <reportElement uuid="0eae3352-7e0c-40fe-a01a-1a3f72b030ac" x="0" y="37" width="195" height="38"/> <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("path/to/the.svg"))]]></imageExpression> </image> (tested with JasperReports v5.2.0 and iReport v5.1.0) Also see: http://community.jaspersoft.com/wiki/how-add-svg-image-your-report-jrxml
  11. Hello clhubert, yes, there is a way to inetrate SVG in reports. For example you can use: <image scaleImage="RetainShape" hAlign="Center" vAlign="Middle"> <reportElement uuid="0eae3352-7e0c-40fe-a01a-1a3f72b030ac" x="0" y="37" width="195" height="38"/> <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("path/to/the.svg"))]]></imageExpression> </image> (tested with JasperReports v5.2.0 and iReport v5.1.0) Also see: http://community.jaspersoft.com/wiki/how-add-svg-image-your-report-jrxml
  12. Very active community... I just placed 100 image elements on same location and fill them with passed parameters. Not very beautyful but rare... and it works!
  13. I did it^^ Filling a report with hashmap "and bean" - though the bean has been added to the hashmap: yes: [...].fillReport(report, hashMap, new JREmptyDataSource()); no: [...].fillReport(report, hashMap, beanDataSource); I'll write down my experiences for me and if a tutorial is still wanted I could try to translate it (from German to English^^)...!?
×
×
  • Create New...