2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Yong Wang - wymz Writing JasperDesign into XML file? 2002-12-11 15:07Hi, I would like to load the jasper xml file into JasperDesign (or other jasper object), change a few things in the object and write it out into a XML file. JRXmlLoader seems to load the xml into the JasperDesign object but JRXmlWriter expects a JRReport object. what would be the right wayt to do this? I am also looking at JAXB for doing this, but the beta version only supports XML Schema and also it would run into getClass() conflict on some jasper elements because they have this "class" attribute. Thanks. By: Yong Wang - wymz RE: Writing JasperDesign into XML file? 2002-12-11 20:47Sorry, to quick to ask this question. I found the answer. JasperDesign impls JRReport. Link to comment Share on other sites More sharing options...
j_przygodzki Posted September 7, 2011 Share Posted September 7, 2011 Class JasperDesign implements JRReport interface.JasperDesign jasperDesign = JRXmlLoader.load(reportFilePath); // modify JRXmlWriter.writeReport(jasperDesign, destFilePath, encoding); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now