vikas.jadhav Posted June 20, 2017 Share Posted June 20, 2017 I am creating jasper object using jasperDesign class and initiating it using JRXmlLoader from jrxml file. I am extracting all the JRbands using getAllBands() method to get all JRbands and from each band I am extracting JRelements using method getElements of JRband. However, after getting each element like staticField or textField. I am not able to get their values from "TEXT" field which is private or protected.Could you please help me to access these values! Link to comment Share on other sites More sharing options...
hozawa Posted June 20, 2017 Share Posted June 20, 2017 Not sure what you are doing without any code. Can't you just use the getText() method to get text? JRElement is an interface so you'll need to use the implementation.http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/base/JRBaseStaticText.html 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