Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jasper Report Issue

 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Experts,
I have a requirement,My client wants me to generate report in xml format and the tags should be user defined.But when I am trying to generate the report(with xml preview in ireport 3.0.0) its showing me the output in xml but with jrxml source.
Please suggest me how do I resolve this problem.It will be nice to have some opinion and sample example too.

Thank you.
rati
 
K. Tsang
Bartender
Posts: 3500
14
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exporter class are you using? There is a JRXmlExporter() for XML export...

Not sure if this is correct for defining your tags/elements. Can try calling the exportElements(Collection<JRPrintElement> elements) method then call the exportReport()

By the way the exportElements() method is protected
 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using exportReportToXmlFile method.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic