my dog learned polymorphism
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
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: 83

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: 3130

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

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 83

I am using exportReportToXmlFile method.

I agree. Here's the link:
subject: jasper Report Issue
It's not a secret anymore!