Jump to content
Changes to the Jaspersoft community edition download ×

dynamically give names to jasper reports


Recommended Posts

By: naveen - naveen_bensily

dynamically give names to jasper reports

2003-12-09 23:03

i want to dynamically give name to my jasper report.(eg. <jasper report name="x" />)

How can i do that .pls help me sir

 

 

 

 

 

By: naveen - naveen_bensily

RE: dynamically give names to jasper reports

2003-12-09 23:04

Hi,

 

You have to load a JasperDesign object from the XML using the JRXmlLoader

and then

you can call setName(String) on it to change the name.

Or you can build JasperDesign objects directly like shown in the

"noxmldesign" sample provided.

 

JasperDesign objects are then compiled into JasperReport objects for filling

with data.

 

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