• 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: 3610
16
Firefox Browser Java Mac OS X
  • 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.

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!