Questions tagged [jasper-reports]

1

votes
1

answer
785

Views

Page Header, Page counter and Page Footer layout not working

I have a main report and a subreport i.e main.jrxml and sub.jrxml with the following problems: On second page the current page number is not incremented On second page and onwards the Title and Page Header are not fully removed On last page the Disclaimer and page number is missing .jasper file is n...
powder366
0

votes
0

answer
2

Views

variable causing net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression:

I have a variable that returns an error when included in the report (preview) but no error when compiling. The variable is supposed to output 2 digit number on the report based on the amount of a field. I have a field $F{total balance} that is java.lang.String. And a variable $V{Total_balance_num}...
jerry_K7
0

votes
0

answer
3

Views

TypeError: self.jbais is not a constructor

I'm trying to call the jasper report from my node server (JS File). But I'm getting different errors like the asked one. The error is generated when i parse the object to JSONDATASOURCE.
Irfan Murtaza
1

votes
1

answer
925

Views

How to show a some text when Table component is empty

I have a main report who call a subreport. This subreport have a table using dataset. I want to display a message when I have no record in my table. How to do this?
Arendelle
1

votes
1

answer
123

Views

How to insert custom Groovy method into the report?

I would like to create a really simple jasper reports with jaspersoft studio. I want to use a groovy function just to return a string which will be included in my report. The problem is I don't really know how to link the groovy file with the jrxml file. Any ideas ? Here's the code and you will n...
Couim
1

votes
1

answer
414

Views

Band height validation

I have a main report which contains a page header, a page footer and one subreport. By adding the subreport, I am trying to see the report preview, but I am getting the follow error: This is the main report source: This is the subreport source: Does anyone could help me with this issue?
Emanuele Antico
1

votes
0

answer
123

Views

Could not initialize DefaultJasperReportsContext, Jasper Studio error after upgrading

After upgrading to the latest version of Jaspersoft Studio (6.5) If I try to compile a report targeted at a previous JasperREports library version (5.6.1) I encounter the error Could not initialize net.sf.jasperreports.engine.DefaultJasperReportsContext I have the project settings set as follows I'm...
user2782001
1

votes
0

answer
36

Views

Jasper Report - gmap PrimFaces

Good afternoon, I have in my application a map of google, which was implemented using the gmap component of PrimeFaces. Would you like to know if there is a possibility of sending an image of this map to the Jasper Report? Here is an example of the map:
Luis Fernando
1

votes
0

answer
101

Views

JasperSoft Studio - How to handle DateTimeOffset

In SQLserver we have this type DateTimeOffset witch the only diferent with DateTime is that we have an Offset of the time zone. JasperSoft Studio (6.3.0 Final) don´t work with this type as you can see: java.lang.ClassNotFoundException: microsoft.sql.DateTimeOffset cannot be found by net.sf.jaspe...
Willas
1

votes
0

answer
55

Views

Parameter in Dblink Connection - JasperSoft - Postgresql

Hi wonder if it is possible to create a dblink connection using a parameter in Jasper. Something like this: SELECT * FROM ( SELECT * FROM dblink('dbname=db port=5432 host=dbhost user=dbuser password=dbpassword', 'SELECT column_1, column_2, date_in FROM table t WHERE t.date_in >= $P{start_date}') AS...
d2907
1

votes
1

answer
358

Views

ireport - list style type=“square” doesn't work

I have a requirement where to enable list with square bullets in ireport. I used below coding and set markup as 'html' but don't know how to achieve this. 'Names of fruits are:' + '' + '    Apple' + '    Orange' + '    Banana' + '' entered above code in Text Field Expression of iReport. When I...
radhik
1

votes
0

answer
122

Views

Moving text and tables between pages after exporting in docx

I'd like to be able to edit my word document like said in the title. This is what my document look like after exporting to docx: Structure: the table is generated with seven cells in a detail band. Every page have a footer and header of fixed length. Problem: if i delete something on the first pag...
OdysseusWithoutABoat
1

votes
0

answer
491

Views

Font extensions maven project does not work for JasperReports

Don't mark duplicate with this question: Font extensions does not work for JasperReports. It's a different case, I'm using a maven project apart. I am trying to add Open Sans font to jasper report in my web app. I use font extension mechanism. This exception was thrown: net.sf.jasperreports.engine.u...
Carlos Laspina
1

votes
0

answer
69

Views

Custom JasperReportsTiffView to export tiff reports

I've a Spring Boot, Spring Data REST, Spring MVC application. I'm using Jasper report 6.5 to create reports. I'm exposing my REST endpoints to a Angular application. I created and endpoing that export a PDF and I would need another endpoint that export the same report in tiff. I'm using JasperReport...
drenda
1

votes
1

answer
419

Views

List into other List jasper report

I have this object structure, to use like Java Bean in mi jasper report, public class Person{ private String name; private String lastname; private List jobs; } public class Job{ private String jobName; private String companyName; private List responsabilities; } All class with corresponding setters...
Carlos Laspina
1

votes
0

answer
148

Views

ERROR: Unable to Preview JasperReports in Jaspersoft 6.5.1

Currently I am working on a project with some older code in it. When trying to preview the JasperReports within JasperSoft Studio 6.5.1 I have run into a slew of errors. After working through a few of them, I seem to have hit a brick wall with this one (shown below this text). I have tried the follo...
M.Brzezinski
1

votes
0

answer
187

Views

Jasper report for nested objects

I have to generate a single PDF report which should have the below objects - User : this object has 5 fields 1. id : integer 2. fname : string 3. lname : string 4. email : string 5. address : this is of type Address, the Address object has 3 fields. 1. id : integer 2. city : string 3. type : string...
pps
1

votes
1

answer
135

Views

HTML5 charts-Customizing tooltip formatting in Jasper Studio

I am using HTML5 bar charts for one of the report. I have a question on tooltip formatting option we have for charts. I need to display amount values for each of the series (coutry in my case) in the graph and the amount should be formatted based on each currency. So, the decimal format will change...
Venkata Thulasi B
1

votes
0

answer
38

Views

Jasper subreport - Not working

I have a main report that calls for a sub report. In the main report, I have the plot-activity name in the detail band, and in the same detail band I put a sub - report. The sub - report, gives the details for every plot-activity. The sub - report also has its details in the detail band. For example...
Rathi Rao
1

votes
0

answer
200

Views

How to set stacked bar chart graph “Fit to page size” report using Jaspersoft studio?

How to set stacked bar chart graph 'Fit to page size' (the graph should cover the whole page and stretch according to data without overlapping) in jasper report using Jaspersoft studio ? I have taken 'Chart_elememt' inside 'Frame_element'. I have tried changing the appearance properties of Chart_ele...
1

votes
1

answer
396

Views

Does Japser Reports work with Java9

Im having trouble using Japser Reports with Java 9. My JasperVersions: 6.5.1 When trying to build my Report i get the following error Message: An internal error occurred during: 'Building report'. java.lang.UnsupportedClassVersionError: my/path/to/my/class/User has been compiled by a more recent ver...
Marcus Lanvers
1

votes
2

answer
230

Views

Using json datasource with JasperReports 4.5.1. Get JRExpressionEvalException exception

I'm having issues accessing the array from my JSON data source. I'm using jasperreports 4.5.1. My contact.json file: { 'Person': { 'FirstName': 'John', 'LastName': 'Smith', 'Contacts': [ { 'Type': 'Cell', 'Number': '555-555-5555' }, { 'Type': 'Home', 'Number': '666-666-6666' } ] } } My contact.jrxml...
fogo
0

votes
0

answer
48

Views

Java - How to remove a page in jasper reports that has only headers and no data available?

I have been seeing a strange issue in jasper. It is when any of my columns are overflowing to the next page. A Page prior is coming blank with only headers. I am not sure if it is a Jasper issue. Now i am trying to remove such pages from Java. I do know how to remove a page but how do i remove a pag...
sTg
1

votes
0

answer
53

Views

Passing a parameter in to a table in report with XPath

I'm using an xml datasource and passing the xml data to a table in ireport. I have a requirement where the values of the xml tag 'amount' needs to be formatted and passed to the table. I have created 'amount' as a parameter and passed it from a java class, but all the rows of the table under the amo...
Kiran
1

votes
0

answer
25

Views

Is it possible to configure a custom default scriptlet for every report on Jasper?

I want to configure by default a custom scriptlet to every report I have without the need of setting it by hand in every report. Is it possible? (By default, Jasper uses its own JRDefaultScriptlet class) Thank you!
1

votes
0

answer
73

Views

Font extension on jasper reports occurs flickering issues on browsers

Could anyone help me to understand next behavior? on server (Centos VM) installed font google-crosextra- carlito-fonts.noarch (only this one contains necessary calibri font for my customer): yum search calibri google-crosextra-carlito-fonts.noarch : Sans-serif font metric-compatible with Calibri fon...
Oleksandr
1

votes
1

answer
300

Views

A simple table in Jasperreports without dataset [duplicate]

This question already has an answer here: Adding table border in jasperreports 1 answer How in jasper studio to draw a simple table? The table is not dynamic. To use frame inside the frame is too crass, because of this the table is moving apart. Are there any correct ways to draw a table?
1

votes
0

answer
24

Views

Grouping a JasperReport based on a variable

I'm trying to group data within JasperReports within the report based on calculated data. I have a set of data that are activities. Below is a highly simplified setup of the data. The Step is just the order by field (in my actual data, it's a start time). The Phase (simplified here to only 3, but...
Pixelstix
1

votes
1

answer
133

Views

How do I set the left margin for a html paragraph shown in a Jasperreports TextField

I am making a subreport using Jaspersoft Studio 6.2.1. The subreport only contains a TextField defined as follows: It works properly, making the PDF view with whatever content I put. Although, it can render html tags like , or , it doesn't render the html paragrahp () tag as it should when I set a...
Julio
1

votes
1

answer
33

Views

In Ireport if we pass map as a parameter from java to ireport how to access map values based on key of ireport field

From java code I pass a parameter to ireport like this fillReportToFile(sourceFilename, map, beanColDataSource1); where map is something like this AFG, [1, 2] AZE, [1, 1] BAN, [0, 1] where key is country_name and the list are values . Now I need to access this in Ireport with key as country_name I...
ce1
1

votes
0

answer
141

Views

Jasper text field display list of values from json as comma separated value

I have a json as below 'markets': [ { 'id': '1001', 'name': 'val1' }, { 'id': '1002', 'name': 'Val2' }, { 'id': '1003', 'name': 'val3' } ] I am trying to display as following in jasper jrxml text fields val1, Val2, val3. i defined my field expression as follow However only one value is displayed...
anju
1

votes
0

answer
44

Views

JasperReport splits row textField with markup to multiple pages

I'm facing with an issue in jasperreport, it is splitting textfield text to 2 pages as following: 1st page 2nd page The band settings The textfield settings: I'm using jasperreports-5.1.0 and java 1.7 I've checked solutions here but it didn't help.. $V{product} variable value is: 'AA Test Product...
Daniyar
1

votes
0

answer
70

Views

Java Printing Issue with Media Size

I will print labels over jasper-report on a brother QL-700. My problem is that java tells the printer driver the wrong label format ☹ - When I use the printer dialog in Java, I can’t found the correct page size in the drop down list - The page is available when I go under the windows drive...
athos
1

votes
1

answer
76

Views

Getting NullPointerException whit JasperReports into a Multi-Thread application

I'm getting this error when i try to use JasperReports in a multi-thread way. java.lang.NullPointerException at java.awt.color.ICC_Profile.activateDeferredProfile(ICC_Profile.java:1086) ~[?:1.7.0_80] at java.awt.color.ICC_Profile$1.activate(ICC_Profile.java:742) ~[?:1.7.0_80] at sun.java2d.cmm.Prof...
Sergio
1

votes
1

answer
80

Views

Dynamic report using jrxml

I am using iReport version 5.6. Right now we're analyzing the requirement for a new project where the requirement is as follows. We have a report which is designed in jrxml with almost 20 fields where user has to scroll to the right to get all values and hence tedious for the user when result size...
Ouseph
1

votes
0

answer
32

Views

jasper reports grouping not working as expected

I am running a jasper report on an select query, I am grouping the result by few values and using the same fields in my header Below is my jasper group expression and header. According to the above group expression, I expect only one header for a group, But I see the group header for the same group...
KGDK
1

votes
0

answer
48

Views

+~JF tmp files process flow / life cycle in jasper java

I see many questions on +~JF tmp files being created when the jasper report runs and but I am having really hard time find more information about these tmp files life cycle. Are +~JF tmp files always created for the first time any jasper report runs? so far, that has been our case. Is there a case...
Alison Aftra
1

votes
0

answer
30

Views

Set value in variable with iReport and compare it in group

I'm new in iReport and am looking for advice about variables comparing in group. I'm trying to do that: After a queryString: I obtain values and put it in a fields. So I have to save the previous value '$V{PREVIUOS_AREA_ID}' and compare it in the group expression pageBreakGroup !($V{PREVIUOS_AREA_ID...
Stefan Petrov
1

votes
0

answer
50

Views

Creating report using Jasper reports and Spring @Async

Hi I'm trying to create a report using Spring and Jasper reports in Java. I'm attempting the report creation inside a @Async method in Spring. Are there any limitations when it comes to this scenario? Since I'm getting a Jasper issue about not having a certain font; which wasn't there before. Any cl...
StO
1

votes
0

answer
25

Views

Page croped when using two columns and horizontal print with JasperReport

I'm using: JasperSoft Studio 6.6.0, JasperReport library 6.6.0, Java(1.8.0_161), Eclipse and Windows 10 Ultimate 64 bits. I have a report that shows information about a Debt(main report) and it payments(subreport, inside main), and also show some others debts(subreport, inside last subreport). I'm u...
RafaelHarth

View additional questions