File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes jasper Report Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jasper Report Issue" Watch "jasper Report Issue" New topic

jasper Report Issue

RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 62

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.
K. Tsang

Joined: Sep 13, 2007
Posts: 2231

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

Joined: Nov 13, 2011
Posts: 62

I am using exportReportToXmlFile method.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jasper Report Issue
Similar Threads
JUnit HTML report using Ant
How to export chart(graph) generated by jsp into a excel?
What about JMeter?
Struts 1 Webdoclet fails generating struts-config.xml
New tool for validate XML