This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubts in JasperReports and iReport  RSS feed

 
Dhinesh Kumar P
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to create a report using JasperReports having hyperlinks to links in local page and also in remote page. im desigine the reports in iReport and creating the reports using JasperReports.
Im having some doubts.
1. how can I give the hyperlink during filltime based on some conditions. Is it possible either in JasperReports or in iReport?
2. Is it possible to display the report with a table structure?
3. How can I give a different background color for a particular text field in the table structure based on some conditions during filling the reports? Is it possible either in iReports or JasperReports?
4. Im using a resultset datasource. The doubt is my resultset is having some columns like �Version Mismatch�. If I declare this field im getting the following compilation error while compiling it in iReport. whether i have to change the columns in the resultset or any other workaround available?

Compiling to file... .\h_index.jasper -> .\h_index.java
Errors compiling .\h_index.jasper!

org.xml.sax.SAXParseException: NMTOKEN/NMTOKENS values must be XML name tokens; "Version Mismatch" is not one.
at org.apache.crimson.parser.Parser2.error(Unknown Source)
at org.apache.crimson.parser.ValidatingParser.validateAttributeSyntax (Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:400)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:384)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:338)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:322)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:128)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:336)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
net.sf.jasperreports.engine.JRException: NMTOKEN/NMTOKENS values must be XML name tokens; "Version Mismatch" is not one.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:404)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:384)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:338)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:322)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:128)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:336)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: NMTOKEN/NMTOKENS values must be XML name tokens; "Version Mismatch" is not one.
at org.apache.crimson.parser.Parser2.error(Unknown Source)
at org.apache.crimson.parser.ValidatingParser.validateAttributeSyntax(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:400)
... 6 more

Compilation running time : 491

How can I overcome these problems? Is there any work around to overcome these problems either in iReport or in JasperReports?

The demo samples in JasperReports is confusing a lot. Can some one send some sample codes regarding this queries?

Thanks in advance.

Regards,
Dhinesh Kumar P
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!