Jump to content
Changes to the Jaspersoft community edition download ×

How to generate reports in custom xml format?


Recommended Posts

By: srinivas sunkara - ssunkara

How to generate reports in custom xml format?

2003-02-05 20:34

I would like to generate a report in custom xml format without any location info: for example if I have a database table product (id, name) and I want this to generate a report in the format below. Is it possible to do this with Jasper reports? If yes any details would be appreciated.

 

<report>

<product> <id> 1 </id> <name>newprod </name> </product>

<product> <id>2 </id> <name>oldprod </name> </product>

</report>

 

thanks,

srinivas.

 

 

 

 

By: Teodor Danciu - teodord

RE: How to generate reports in custom xml format?

2003-02-06 00:42

 

Hi,

 

You don't need a report generating tool for that.

Just create a simple program that iterates

the products and creates the XML you need.

 

I hope this helps.

Teodor

 

 

 

 

 

By: srinivas sunkara - ssunkara

RE: How to generate reports in custom xml for

2003-02-06 09:33

Thanks for the response. I am aware of the fact that I could do it using a simple program. (The above requirements illustration is an example only.) I was looking to see if some of these report generating programs would do it so I could configurably change the tag names as needed and generate different reports from different queries. . Can I do this by writing an exporter for JasperReports?

 

srinivas.

 

 

 

 

By: Teodor Danciu - teodord

RE: How to generate reports in custom xml for

2003-02-06 10:03

 

Hi,

 

You could write an exporter, just like the existing

JRXmlExporter.

The problem is that in the .jrprint format, we don't

know anymore where the data came from.

So, how could you know which is the product ID?

 

I hope this helps.

Teodor

 

 

 

 

 

By: srinivas sunkara - ssunkara

RE: How to generate reports in custom xml for

2003-02-25 11:40

Can I add static text(tags) around each of the dataelements retrieved and hence can still have the tags needed in the .jrprint format ?

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...