This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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: 3397
13
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