jasper-reports

Adding page border in jasper report

廉价感情. 提交于 2019-12-30 10:46:09
问题 I have gone through some posts regarding "adding page border in jasper reports" but dint help much. Someone please tell me in detail how to add page border? 回答1: I achieved this by adding a background to my reports like this for example: <background> <band height="802" splitType="Stretch"> <rectangle> <reportElement key="rectangle-2" x="0" y="76" width="535" height="726"/> <graphicElement> <pen lineWidth="0.5" lineStyle="Solid"/> </graphicElement> </rectangle> </band> </background> 来源: https:

DynamicJasper - How to add a subreport as columns?

醉酒当歌 提交于 2019-12-30 10:43:16
问题 Overview I have a Java class which has an ArrayList that must be printed to the jasperReport as a subreport. I'm using DynamicJasper library. The example on this question has been modified so it can be reproduced. However the data is different on the real case. Problem The current code Ive come with, prints the subreport in another line. Its ugly. I wanted the subreport to just be a group of columns that are concatenated. To make it clear, here's the current result And What I want is

DynamicJasper - How to add a subreport as columns?

别来无恙 提交于 2019-12-30 10:42:17
问题 Overview I have a Java class which has an ArrayList that must be printed to the jasperReport as a subreport. I'm using DynamicJasper library. The example on this question has been modified so it can be reproduced. However the data is different on the real case. Problem The current code Ive come with, prints the subreport in another line. Its ugly. I wanted the subreport to just be a group of columns that are concatenated. To make it clear, here's the current result And What I want is

Jasper Reports “package net.sf.jasperreports.engine does not exist” exception in JDeveloper 11.1 using WebLogic only in EAR Web Page

Deadly 提交于 2019-12-30 10:29:13
问题 I'm using JDeveloper 11.1, Oracle 11 and TIBCO JasperReports 6.0.1. I'm having problems trying to generate Jasper Reports from my web page (ViewController) while using an ApplicationModule (Model - EJB) for doing that. At the end the PDF file has to be sent via email, that's why I let it into the Model project. If I execute the ApplicationModule, it works fine, no exceptions, the PDF is very well generated and sent. However, if I execute the client method since a web page I got this exception

Jasper reports doesn't work on server in docker container (spring boot java application) [duplicate]

只愿长相守 提交于 2019-12-30 07:30:09
问题 This question already has answers here : Font is not available to the JVM with Jasper Reports (18 answers) net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: can not reading font data (3 answers) What could be making Jasper Reports to throw java.io.IOException reading font data? (1 answer) Closed last year . My pom file: <!-- Jasper Dependency --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.6.0</version> </dependency

Jasper reports doesn't work on server in docker container (spring boot java application) [duplicate]

人盡茶涼 提交于 2019-12-30 07:30:06
问题 This question already has answers here : Font is not available to the JVM with Jasper Reports (18 answers) net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: can not reading font data (3 answers) What could be making Jasper Reports to throw java.io.IOException reading font data? (1 answer) Closed last year . My pom file: <!-- Jasper Dependency --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.6.0</version> </dependency

JasperReports 5.6: Could not load the following font

一笑奈何 提交于 2019-12-30 06:21:30
问题 I am facing the problem, that JasperReports still cannot find the Arial font. I created a simple Maven Project with following structure and included it to my main application. So the main application contains the installed JAR in classpath: - jasperreports_extension.properties - fonts |-> arial |-> ariali.ttf |-> arialbi.ttf |-> arialbd.ttf |-> arial.ttf |-> fonts.xml But I still see following Exception while exporting report to PDF. net.sf.jasperreports.engine.JRRuntimeException: Could not

How to create a dynamic report thorough jrxml?

痞子三分冷 提交于 2019-12-30 05:02:06
问题 I am working on jrxml to create dynamic reports. I have parameterized the columns i.e. the jrxml for that report can be used to generate other reports as well. However, I have not managed to make the fields flexible. That is, if the user selects 4 columns it would work but if 1 or 2 or 3 columns are selected, it gives an error since the field names are unidentified. Please post a solution urgently if something like a default expression for fieldname can be created or a for loop/java script

Export JasperReports in HTML format

烈酒焚心 提交于 2019-12-30 03:22:08
问题 The code below gets a byte[] result, which works for PDF and XLSX. For HTML, an exception is raised. JasperPrint jasperPrint = JasperFillManager.fillReport(report, params, dataSource != null ? new JRMapArrayDataSource( dataSource) : new JREmptyDataSource()); ByteArrayOutputStream out = new ByteArrayOutputStream(); @SuppressWarnings("rawtypes") Exporter exporter; switch (format) { case PDF: exporter = new JRPdfExporter(); break; case XLSX: exporter = new JRXlsxExporter(); break; case HTML:

Creating/Passing Java bean Datasource in JasperReport

喜欢而已 提交于 2019-12-30 02:12:09
问题 I am using JasperReport and ireport in my JSF application to generate reports on the fly. This is what I am trying to achieve:- My structure(read as HashMap/ArrayList) contains data that needs to be passed to the report so that the same is shown in report. My report already contains a Datasource connection using which I am fetching some value from DB and populating it in report. I am creating a subreport so that for data which needs to be passed from code I can use the subreport and embed