How to generate a jrxml from a JasperDesign ?

0
By: Piel Yves - narmataru How to generate a jrxml from a JasperDesign ? 2005-07-26 02:09 Hello, I'm develloping a vry basic jasperReport editor which load a .jrxml, parse object and allow the chnage of some attribute (like font, color etc...). But I can't find how to save those changes into the jrxml ? So how can I write a jrxml file from a JasperDesign object ? thanks :) By: C-Box - c-box RE: How to generate a jrxml from a JasperDesi 2005-07-26 02:19 I would first compile your design (as it should be valid of course): JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); then save this JasperReportObject to XML file: JasperCompileManager.writeReportToXmlFile(jasperReport , destFileName); voilá´hat's it!:-) You could try using the JRSaver methods too... there is just an object wanted as parameter... but that I haven't tried, because my reports must be valid... so I do compile before saving... :-) hth C-Box By: Piel Yves - narmataru RE: How to generate a jrxml from a JasperDesi 2005-07-26 02:22 thank you again ;) I'll try it...
2004 IR Help's picture
Joined: Aug 17 2006 - 3:49am
Last seen: 8 years 2 months ago

1 Answer:

0
i don't want to compile the modified report but i want to create modified jrxml file so that i can edit it in iReport. Any body having any idea. Regards: Ritesh Kumar
singhipst's picture
Joined: May 13 2007 - 8:28pm
Last seen: 7 years 5 months ago
Feedback