Jump to content
JasperReports Library 7.0 is now available ×

Uncompile .japer to .xml


Recommended Posts

By: Schuller Tom - tomluxj

Uncompile .japer to .xml

2003-07-15 05:55

Hy,

I have losed my .xml files.

But I possess the compiled .jasper files.

 

Is it possible to generate the source .xml files from the compiled .jasper files.

 

Thanks,

Tom

 

 

 

 

By: Chuck Deal - cdeal

RE: Uncompile .japer to .xml

2003-07-15 06:38

Try this:

 

JasperDesign jd = <Load your .jasper object here>

String xml = JRXmlWriter.writeReport(jd);

 

THis is similar code that that used in the JasperEdit project. Basically, load your .jasper into the JasperDesign Object, then let the JRXmlWriter write the design out into a String. THen you save the String into a file.

 

Good luck!

 

Chuck

 

 

 

 

By: Teodor Danciu - teodord

RE: Uncompile .japer to .xml

2003-07-15 06:41

 

Hi,

 

Check the "hyperlink" sample to see how a .jasper.xml

file is generated from the compiled .jasper file, using

the JRXmlWriter as Charles suggested.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...