jasper-reports

java.lang.OutOfMemoryError: Java heap space in jasper report

夙愿已清 提交于 2020-01-03 06:05:50
问题 When i export content in doc format then i get java heap space error, java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.io.ByteArrayOutputStream.write(Unknown Source) at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder.implWrite(Unknown Source) at sun.nio.cs.StreamEncoder.write(Unknown Source) at sun.nio.cs.StreamEncoder.write(Unknown Source) at java.io.OutputStreamWriter.write(Unknown Source) at java.io.Writer.write

Can I use JasperReports like D3.js?

孤人 提交于 2020-01-03 05:28:10
问题 Can I use JasperReports like D3.js. D3 js is a JavasSript lib to generate user interactive reports, for example user can use particular area in report like . Is JasperReports really support like these features? 回答1: It doesn't look like Jasper Reports supports this at the moment, but you could implement D3 support in a custom component as suggested here. 来源: https://stackoverflow.com/questions/21347998/can-i-use-jasperreports-like-d3-js

Jasper Report with Struts2 Framework

守給你的承諾、 提交于 2020-01-03 03:59:06
问题 I've created an application in Struts2 framework with Jasper reporting. In the index page when I click a button then I will get report as pdf displayed. But I'm very much concerned about my implementation. Does the implementation what I did is the correct way? Since I noticed in several tutorials that calling jasper in struts2 is somewhat like: <action name="myJasperTest" class="com.acme.test.action.JasperAction"> <result name="success" type="jasper"> <param name="location">/jasper/our

Visualize.js authentication error after second login

♀尐吖头ヾ 提交于 2020-01-02 08:11:41
问题 I have a website—utilizing Visualize.js—that has a simple login/logout feature. Everytime I login I call the authenicateUser() function and logout destroySession() . When I try login and then logout and then login again, when I try to render my existing reports I get this thrown error: HTTP Status 401 - Full authentication is required to access this resource The functions authenicateUser() and destroySession() are shown below: function authenticateUser () { var myConfig = { auth : { name :

JasperReports: subreports not working with positionType='Float'

只愿长相守 提交于 2020-01-02 06:18:13
问题 Subreports overlap in this example -- what am I doing wrong? The second one is supposed to "float" below the first one, with its 'y' attribute being ignored, but it isn't. Thanks !! <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report name"

JRProperties became deprecated, recommended way of replacing

老子叫甜甜 提交于 2020-01-02 05:41:06
问题 The JRProperties class has been annotated as deprecated and replaced by JRPropertiesUtil as stated in the documentation I've been using it to set the properties in a following way (since it was a class providing static methods), JRProperties.setProperty("net.sf.jasperreports.default.font.name", defaultPDFFont); JRProperties.setProperty("net.sf.jasperreports.awt.ignore.missing.font", "true"); (...) Which is I presume an unrecommended way of setting the properties now. I've found two ways of

Jars needed for JasperReports?

余生颓废 提交于 2020-01-02 04:42:07
问题 I have downloaded JasperReports jars (jasperreports-5.6.0-project.zip from here) and toke all the jars in the dist folder. These are the files I added to my project: jasperreports-5.6.0.jar jasperreports-applet-5.6.0.jar jasperreports-fonts-5.6.0.jar jasperreports-javaflow-5.6.0.jar But when I try my code I always get this error: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory UPDATE 1 I solved that error and I have a lot of more missing jars. Please tell me all the

How to create Jasper Report Table component with Group By?

家住魔仙堡 提交于 2020-01-01 22:18:11
问题 The standard column layout can use to achieve this. How can I do it for the table component layout? 回答1: It is quite easy. You should add new datasource for Table component and then use it (datasource) in this component. The sample jrxml : <?xml version="1.0" encoding="UTF-8"?> <jasperReport ... whenNoDataType="AllSectionsNoDetail" ...> <style name="table"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen

FileNotFoundException while I am using jasper report

落花浮王杯 提交于 2020-01-01 18:58:09
问题 I am trying to create Jasper Report in Liferay portlet but I am getting below error: Caused by: net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: src\com\ztscorp\lms\reports\HibernateQueryDemoReport.jasper (The system cannot find the path specified) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:176) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:156) at net.sf.jasperreports.engine.JasperCompileManager.compileReport

Retrieve resource from jasperserver repository using server java api

拜拜、爱过 提交于 2020-01-01 17:27:51
问题 I'm trying to retrieve resource from Jasperserver repository using its java API, according to jasper report server ultimate guide, I should get an instance of the ExecutionContext interface: ExecutionContext context = JasperServerUtil.getExecutionContext(); then, get an instance of the RepositoryService interface: RepositoryService repositoryService = ...; //how?? Now I can get the file using the following code: FileResourceData fileResourceData = repositoryService.getContentResourceData