jasper-reports

JasperReport Issue using with struts2 - getting null in final PDF file

Hello, i am writing my jasper report problem with struts2. Following is the code that i am trying to execute : struts.xml contains : <action name="myJasperTest1" class="temp.JasperAction1"> <result name="success" type="jasper"> <param name="location">/jasper/our_compiled_template.jasper</param> ...

directly embedded subreport in jasper report

Hello, I am so close to having this work, I am trying to directly embed one jasper subreport into the main report xml of the other. You'd think this would be easy, but I can't find a single example on doing it. Everyone seems to use files or resources or whatever. I have one report working straight from a string and I want it to conta...

Can JasperReports include a pdf in a report?

Is it possible to include an existing pdf file in a JasperReport? We really want to append new data to an existing report with out regenerating the existing report. We will be exporting back to pdf. I'm looking at using iText's PdfCopy to merge two pdfs, but was hoping JasperReports might have an easier way... ...

Avoid Column Merging in Excel

The report columns are not being properly mapped to the excel cloumns.The excel column gets merged. Please suggest the solution?Its urgent ...

iReport: Sub-reports using XPath (XML Data Source) show up blank

Hello, I am using iReport 3.5.2 to create a report using an XML data source. I followed the "Step by step" example from the "Sub-reports" section of "The Ultimate Guide to iReport", and I was able to get the example working with SQL. However, when I try to use an XML data source and XPath, the sub-report comes out blank in the master r...

How to query multiple SUMs of the same item using SQL in iReport

I'm creating a JasperReport using iReport, and as such, I'm limited* to one SQL query. I have a table 'statistics', with a 'name' (VARCHAR), 'count'(INTEGER), and 'datetime'(DATETIME) columns. It is simple enough to get the sum of the 'count' column when the 'name' was "test" for the last day, and similarly for the last week, and month ...

Text field on Subreport with 173 carriage returns causing crash

We have a text field on a Subreport with 173 carriage returns causing a crash. If we remove this data it works fine. We have Stretch Type for this text field No Stretch, the Print When Detail Overflows is false and the Stretch with Overflow. Now we plan on changing the interface as well, but is it possible to make this work with Jasper...

Convert a parameter entered as an integer to a string in JasperReports

I have a JRXML file that I use to generate a report built on a massive SQL query for an Oracle database. I have entered a parameter to the report that gets filled as an Integer. However, I would also like to reference this parameter as a String at a different point in the query. Is there a way I can convert the parameter from an Intege...

Jasper report: two detail sections?

I've got a jasper report to do, with data like this: Item | Quantity | Color ------+-----------+-------- A001 | 1 | Red A001 | 1 | Green B002 | 3 | Red B002 | 3 | Purple The report is grouped by Item/Quantity, e.g. Item: A001, Qty: 1, Colors: Red,Green Item: B002, Qty: 3, Colors: Red,Purple ...

Render PDF on a Blackberry?

We are using Blackberries to display PDF reports. Here are background details on the problem: The PDF reports are created using JasperReports. Report format can be changed. Different report formats are available (as per the feature set of JasperReports). The PDF reports are on a website, too, so retaining a single source is ideal. The ...

Can jasper reports produce excel file with column widths auto adjusted to contents?

When jasper outputs a file in the Excel xls format, the columns when viewed are only the fixed width determined in the jasper XML. This is a problem when the data in the columns is of varying widths, causing some columns to wrap. I've had a look at the API and the DTD and there doesn't seem to be a way of setting the column widths to ...

export html content to pdf using jasper reports

how do i export HTML content into PDF using jasper reports, i have a parameter which carries value of the type HTML, and i have to export the same to a pdf file, where the pdf has to parse the html content ...

what does this java error mean?

I'm trying to convince Zucker Reports to display a Jasper report but am getting a Java error and I don't speak java-ese. I see that there is a file not found error, but I can't figure out which file is not found. I replaced the long classpath with <SNIP>. error compiling report report2.jrxml - cmdline: javaw -classpath "<SNIP>" at....

Is it possible to use Jasper Reports to generate reports from LDAP

I'd like to be able to include the results of LDAP queries in Jasper reports. Is that feasible? From what I can gather it seems that the only way to go about this is to write my own custom datasource. ...

Compile and interpret JSP with Java only

I would like to compile and interpret JSP in Java, out of Tomcat or any other servlet container. I think I may use the Jasper libraries coming with Tomcat, but I can't find any example of how to do it on the Web. The minimum I need is a function that returns an String (HTML resulting text) from a compiled JSP and a HttpServletRequest, ...

New lines in Jasper Reports?

I've just started using Jasper Reports to generate reports from data retrieved using Hibernate. Everything is working, except JR doesn't seem to respect newline characters (\n) in text fields. Is there a way to force line breaks at newline characters? ...

Displaying static text instead of empty group in JasperReports.

I have a Jasper report that displays a list of bill line items. These items are grouped by billing period, and then by whether the item is a charge or credit. For billing periods in which there are charges but no credits, I would like to display a static text field stating "No credits" in the Credit group for that period. How can this be...

how to modify the textfield in jasper report using java

i have created a textfield in jasper reports, Using java how do i modify the textfield properties like width, postion etc ...

taskdef A class needed by class org.apache.jasper.JspC cannot be found: Could not initialize class org.apache.jasper.JspC

Hi I am getting the error taskdef A class needed by class org.apache.jasper.JspC cannot be found: Could not initialize class org.apache.jasper.JspC when I tried to build the build.xml file. can anyone please give me a solution. Thanks in advance ...

Reporting for multi-tenant web app

We have a multi-tenant web-based Enterprise application using Hibernate over MySQL. We use Jasper Reports for any reports that our customers require, but now we also need to offer ad-hoc reporting so that Users can run their own queries. How have others accomplished this? I am thinking that I can either: Provide a full export in exce...