jasper-reports

How to remove blank lines in case when WhenPrintExpression is false?

拈花ヽ惹草 提交于 2020-04-07 08:22:08
问题 We are using JasperReports 6.6. I use conditional expression to display certain parameters. The behaviour is as expected. However, when it is not printed, there is still blank line space. The fields are not touching each other, I took care. There are all isRemoveLineWhenBlank. Print when no expression is functionnal since the expression content is not displayed when the condition is not ok. The other elements are float type. TRY I tried solutions from other answers but do not correspond to my

How to use transparent SVGs in jasper report and export to pdf

Deadly 提交于 2020-03-25 21:54:10
问题 I'm trying to export jasper report to pdf using partially opaque SVGs, but in the pdf the opaque are solid white-ish. The image expression is: <imageExpression><![CDATA[net.sf.jasperreports.renderers.SimpleRenderToImageAwareDataRenderer.getInstance(byte[] data)]]></imageExpression> In the background it seems jasper is using Apache BatikRenderer and XML Graphics. Here are even examples of transparency support: https://xmlgraphics.apache.org/fop/trunk/graphics.html#svg According to this link,

How to fix “Field not found” error in case using two XPath expressions in single report?

不羁岁月 提交于 2020-03-22 11:47:49
问题 I've been struggling with my problem since 7 days. I have 1 XML input data and want to convert that into desired PDF file with line chart XML <?xml version="1.0" encoding="utf-8"?> <sample-data xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:ht="urn:xyz.com/xslt/extensions"> <section name="relative-performance"> <historic-valuations> <valuation-list> <valuation> <value>890000</value> <date>2014-12-01T00:00:00</date> </valuation> <valuation> <value>923789</value> <date>2015-12-01T00:00:00<

Integrate JasperReports Viewer Like Component inside an AngularJs Component

女生的网名这么多〃 提交于 2020-03-05 07:03:27
问题 I have been researching this problem for some time and have seen few references (like this). I know the Viewer is a Swing component, but I would like to achieve something like integrating/having a container in which to preview reports. I have not seen any such component default provided by Angular. Has anyone attempted something similar or is it better to create own web components (Polymer-wise perhaps). Thanks in advance. 回答1: Probably this is not really possible, due to reasons above. Just

How to iterate over JSON array to create repeating report in jasperreports

▼魔方 西西 提交于 2020-03-03 12:23:11
问题 I have a JSON data with a following structure [{ "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }] I have created separate reports for details1 and details2 arrays. Also I have create a report for one element of the main table refferring to details1 and details2 reports as a subreports. The problem is the main

How to iterate over JSON array to create repeating report in jasperreports

给你一囗甜甜゛ 提交于 2020-03-03 12:20:35
问题 I have a JSON data with a following structure [{ "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }] I have created separate reports for details1 and details2 arrays. Also I have create a report for one element of the main table refferring to details1 and details2 reports as a subreports. The problem is the main

How to iterate over JSON array to create repeating report in jasperreports

喜你入骨 提交于 2020-03-03 12:20:09
问题 I have a JSON data with a following structure [{ "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }, { "a1":"b1", "a2":"b2", "details1":[{"a1":"b1"}], "details2":[{"a2":"b2"}], }] I have created separate reports for details1 and details2 arrays. Also I have create a report for one element of the main table refferring to details1 and details2 reports as a subreports. The problem is the main

IllegalArgumentException: When using array of Objects as the value of SCHEMA_SOURCE property , no two Schemas should share the same targetNamespace

时光总嘲笑我的痴心妄想 提交于 2020-03-03 03:41:15
问题 I am using JasperReport/ireport4, I tried to generate a report as below public void fillReport() throws ParseException, groovyjarjarcommonscli.ParseException, IOException { try { Driver monDriver = new com.mysql.jdbc.Driver(); DriverManager.registerDriver(monDriver); connection = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/MyDB","", ""); Map mymap = new HashMap(); mymap.put("Title", MyTitle); mymap.put("legend", legend); mymap.put("SQL", Query()); FacesContext

IllegalArgumentException: When using array of Objects as the value of SCHEMA_SOURCE property , no two Schemas should share the same targetNamespace

爷,独闯天下 提交于 2020-03-03 03:40:06
问题 I am using JasperReport/ireport4, I tried to generate a report as below public void fillReport() throws ParseException, groovyjarjarcommonscli.ParseException, IOException { try { Driver monDriver = new com.mysql.jdbc.Driver(); DriverManager.registerDriver(monDriver); connection = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/MyDB","", ""); Map mymap = new HashMap(); mymap.put("Title", MyTitle); mymap.put("legend", legend); mymap.put("SQL", Query()); FacesContext

How to get non-english support when exporting to PDF? [duplicate]

萝らか妹 提交于 2020-02-28 06:16:40
问题 This question already has answers here : How can I render hindi correctly when exporting to pdf? (3 answers) Closed 4 years ago . I am using JasperReport version 6.2 And I want to export report to PDF, but my report will not support languages different then English (other languages fields appear as blank), This is my code for generating the report JsonDataSource ds = new JsonDataSource(JRLoader.getInputStream(jsonFile)); JasperReport jasperReport = (JasperReport) JRLoader.loadObject