Jump to content
JasperReports Library 7.0 is now available ×

How to get the object handle of Elements?


Recommended Posts

By: mafroing - mafroing

How to get the object handle of Elements?

2006-01-16 13:02

Hi, folks, I am trying to change the properties of elements (like TextFields, Lines, Rectangles, etc.) on a report by coding (not through designers for flexibility purpose), and my idea is the following:

 

using

JasperDesign jd = (JasperDesign)JRXmlLoader.load("report.jrxml");

to get the JasperDesign object, and then return the element handle individually, but how come that there is no such methods in the JasperDesign class? Or I should try some other ways?

 

Thanks guys, I really need help!

 

Mafroing

 

 

 

 

 

By: lophiomys - lophiomys

RE: How to get the object handle of Elements?

2006-01-16 14:01

JRBand= JasperDesign.getDetail()

JRBand.getElementByKey()

 

see API DOC of JRBand, JRDesignElements,

net.sf.jasperreports.engine.JRElementGroup

 

also see the example demo/samples/noxmldesign

 

HTH (just a beginner working on a similar problem)

Lophiomys

 

 

 

 

By: mafroing - mafroing

RE: How to get the object handle of Elements?

2006-01-17 05:07

Thanks, Lophiomys, I will try that!

 

Mafroing

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