ireport

Excel datasource in JasperReports/iReport: Unable to get value for field 'Date' of class 'java.sql.Date'

穿精又带淫゛_ 提交于 2019-12-01 13:41:57
I've used an Excel file as datasource for building report with iReport . The xls file contains dates yyyy-MM-dd format. I've set the Date field class to java.sql.Date and I click on preview in iReport . There is an error: Unable to get value for field 'Date' of class 'java.sql.Date'. I have tried with java.util.Date too. Do you have any ideas? It is quite simple. I've xls file ( birhdays.xls ) like this: The datasource definition (in iReport ) is: As you can see from the image above I've set yyyy-MM-dd format for date field in DS definition. The date field definition in jrxml file: <field name

Jasper Reports: showing images dynamically depending on field values

五迷三道 提交于 2019-12-01 12:28:34
I'm using Jasper Reports and iReport to generate the reports of my app. I need to show images in my report depending on a query on my database. The images are plans and have other fields inside representing measurements, etc. I.E. With two images: IMAGE1 and IMAGE2 linked to Field_ONE and Field_TWO. If Field_ONE is != null then i whould like to show IMAGE1 and the fields inside the image in the document; If Field_TWO is != null and Field_ONE is equal to null then i want to show IMAGE2 in the place where previously showed IMAGE1 If Field_TWO is != null and Field_ONE != null then i want to show

show newly installed font in jasper report from grails in pdf format

泪湿孤枕 提交于 2019-12-01 11:43:46
I am using iReport 4.5.0 and grails 2.1.1 I wanted to use 'Canterbury' font for some of the texts in my report in pdf format, so i assigned that font to my desired texts using iReport designer. I also went to tools->option menu of the iReport designer and installed the font. And then made a jar extension by clicking 'Export as extension' of that font. I copied the created extension file and pasted to my application's classpath with no success. The problem is, when i run the report from my application the pdf report is showing the normal font instead of 'Canterbury' in all of the texts. I also

Excel datasource in JasperReports/iReport: Unable to get value for field 'Date' of class 'java.sql.Date'

半世苍凉 提交于 2019-12-01 11:37:44
问题 I've used an Excel file as datasource for building report with iReport . The xls file contains dates yyyy-MM-dd format. I've set the Date field class to java.sql.Date and I click on preview in iReport . There is an error: Unable to get value for field 'Date' of class 'java.sql.Date'. I have tried with java.util.Date too. Do you have any ideas? 回答1: It is quite simple. I've xls file ( birhdays.xls ) like this: The datasource definition (in iReport ) is: As you can see from the image above I've

Jasper Reports: showing images dynamically depending on field values

一曲冷凌霜 提交于 2019-12-01 10:33:52
问题 I'm using Jasper Reports and iReport to generate the reports of my app. I need to show images in my report depending on a query on my database. The images are plans and have other fields inside representing measurements, etc. I.E. With two images: IMAGE1 and IMAGE2 linked to Field_ONE and Field_TWO. If Field_ONE is != null then i whould like to show IMAGE1 and the fields inside the image in the document; If Field_TWO is != null and Field_ONE is equal to null then i want to show IMAGE2 in the

iReport (JasperReports) extra row issue

*爱你&永不变心* 提交于 2019-12-01 07:32:52
I am getting an extra empty row between data when I am importing it from the database and formatting the report in Excel sheet. EDIT (clarification from a comment): The output in Excel shows an extra blank row between records and and extra blank column between fields. Add net.sf.jasperreports.export.xls.remove.empty.space.between.columns and net.sf.jasperreports.export.xls.remove.empty.space.between.rows properties to report template. net.sf.jasperreports.export.xls.remove.empty.space.between.columns - Specifies whether the empty spacer columns should be removed or not. net.sf.jasperreports

Switching page orientation in ireport

房东的猫 提交于 2019-12-01 06:44:43
I've read there's no way to handle mixed orientations natively using iReport, however reading the documentation I wonder if by using JRDefaultScriptlet's beforePageInit() it could be accomplished somehow. In my case there's a portrait front page, as many landscape pages as there's data to populate them, and a last frontal page. On the other hand does anybody know: If this is a feature to be supported in the near future If there's an alternative that does as requested and generates a jasper-compliant xml file Thanks in advance. So I decided to play around with iReport and see what options there

The entity name must immediately follow the '&' in the entity reference error in jasper reports

扶醉桌前 提交于 2019-12-01 05:18:48
I have a Master report that has 4 subreports. The report gets generated successfully when I generate the report in iReport(version 4.1.3). However when the report gets deployed in JBoss server it gives the following error Error Parsing Styled Text "org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference jasper reports". Its corresponding blank report that does not have any mapping with the datsource is getting generated successfully. However the one which fetches the values from the data source is throwing this error. Could you please tell me what

iReport (JasperReports) extra row issue

五迷三道 提交于 2019-12-01 04:36:42
问题 I am getting an extra empty row between data when I am importing it from the database and formatting the report in Excel sheet. EDIT (clarification from a comment): The output in Excel shows an extra blank row between records and and extra blank column between fields. 回答1: Add net.sf.jasperreports.export.xls.remove.empty.space.between.columns and net.sf.jasperreports.export.xls.remove.empty.space.between.rows properties to report template. net.sf.jasperreports.export.xls.remove.empty.space

Switching page orientation in ireport

你。 提交于 2019-12-01 04:18:58
问题 I've read there's no way to handle mixed orientations natively using iReport, however reading the documentation I wonder if by using JRDefaultScriptlet's beforePageInit() it could be accomplished somehow. In my case there's a portrait front page, as many landscape pages as there's data to populate them, and a last frontal page. On the other hand does anybody know: If this is a feature to be supported in the near future If there's an alternative that does as requested and generates a jasper