jasper-reports

Jasper report: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending [duplicate]

二次信任 提交于 2019-12-25 00:14:37
问题 This question already has answers here : How do I fix a NoSuchMethodError? (28 answers) Closed last year . I run in Tomcat, jasper report crashed with PDF, excel still running fine. JRPdfExporter exporter = new JRPdfExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); ByteArrayOutputStream os = new ByteArrayOutputStream(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(os)); exporter.exportReport(); And error shot out: java.lang.NoSuchMethodError: com

Images not shown in JasperReports' html report

允我心安 提交于 2019-12-24 21:12:03
问题 I'm working on a reporting web application using JasperReport and Spring MVC 3 to show generated reports (html) into web pages. I'm new to both frameworks and I'm having troubles rendering images in html reports. Tomcat log: No mapping found for HTTP request with URI [/<app-name>/<image-name>] in DispatcherServlet with name '<app-name>' I guess that images in the report are not shown probably due to the DispatcherServlet mapping url: <url-pattern>/</url-pattern> . Using the <mvc:resources />

JasperReport with OutputStream not exporting to PDF

[亡魂溺海] 提交于 2019-12-24 18:48:07
问题 I am using JasperReport to export a report to a PDF. The code runs fine with no exception messages showing up in the console/log. However, the report does not export to the browser. In other words, the report is being created, I just cannot download or gain access to it. Here is the export code: public void generatePDFReport(Map<String, Object> parameters, JRDataSource jrDataSource, String resource, String filename) { OutputStream os = null; try{ FacesContext context = FacesContext

Jasper, 'print when' create white space,

你。 提交于 2019-12-24 18:43:15
问题 I've created a simple JasperReport example, using the sample DB: StackOverflowExample.jrxml: <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.8.0.final using JasperReports Library version 6.8.0-2ed8dfabb690ff337a5797129f2cd92902b0c87b --> <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

Jaspersoft ireport designer 4.5.1 /4.6.0 & hive

夙愿已清 提交于 2019-12-24 18:36:22
问题 I am trying to design a report using hive connection. I created hive connection and tested it is working ok. Is there anything i am doing wrong. I am new to iReport. jdbc:hive://192.168.254.132:10000/default I am using report designer, I typed in my HiveQL it gives REPORT_CONNECTION parameter not specified. I have specified the hive connection. i tried simple query, select * from iptable. message: net.sf.jasperreports.engine.JRException: Parameter "REPORT_CONNECTION" does not exist. Level:

jasper work fine in netbeans but it throw exception

百般思念 提交于 2019-12-24 18:20:53
问题 My code on button click event is this: private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:Sample"); HashMap hm=new HashMap(); JasperReport jre; jre=JasperCompileManager.compileReport("D:\\test java\\JavaApplication2\\report2.jasper"); JasperPrint jr = JasperFillManager.fillReport(jre, hm, con); JasperExportManager.exportReportToHtmlFile(jr, "D:\\test java\

How to use positionType to pull a component up when the above component is not displayed in jasper?

三世轮回 提交于 2019-12-24 17:44:13
问题 positionType="Float" on a component pulls itself down if the above component stretches. But doesn't move up if the above component shrinks/not displayed. Below is the version used: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.0.0</version> </dependency> Code that will reproduce the above issue: <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0

Define own date intervals with startDate and endDate in a new variable

十年热恋 提交于 2019-12-24 17:15:02
问题 I am struggling with a date calculation to define my own range for a bar chart series. My dynamic dates are parameters the timestamp parameters "timestamp1", "timestamp2", "timestamp3", "timestamp4" wheras I want to create the intervals interval1: days between "timestamp1" and "timestamp2" interval2: days between "timestamp3" and "timestamp4". What is the expression that I have to add to my variables in order to have two time intervals for my bar chart series? I am completely lost with this

Unable to Filter out the repeating values in iReport

感情迁移 提交于 2019-12-24 16:33:50
问题 I have a report that is supposed to show the part and quantity based on the location selected. It is a modified version of the Costing Layer Valuation in Fishbowl. I have been able to get the location filtering to work but now the values are being duplicated and I am unable to figure out why. These are screenshots to show the print out of the report when the Print All Repeating check box is unchecked and checked. This is my SQL Query SELECT costlayer.qty AS Qty, costlayer.orgqty, costlayer

jasper report(ireport) line/border not following to next group

旧时模样 提交于 2019-12-24 16:11:45
问题 My report border is not displayed in continues way... As shown in the image below i have 5 sections Page header - Logo and header content on each page Group Header 1 - displays employee details as it will be single row Group Header 2 - displays project details as it will be multiple row Detail section - displays project images footer - displays address on each page The image below is showing up only 1st page wherein 2nd page(detail section) contains the images of the project. As you can see