elainetmy Posted July 30, 2013 Share Posted July 30, 2013 Hi, I've a problem in showing images in Page Header Band.This is my code.band = new JRDesignBand();band.setHeight(100); image = new JRDesignImage(jasperDesign);image.setX(450);image.setY(10);image.setHeight(30);image.setWidth(30);expression = new JRDesignExpression();expression.setValueClass(java.lang.String.class);expression.setText("$P{ImageUrl}");image.setExpression(expression);band.addElement(image); jasperDesign.setPageHeader(band); When I debugged the code, I noticed that after compilation of the report, it convert from JRDesignImage to JRBaseImage. May I know what's problem with my code? Thank you. Elaine. Link to comment Share on other sites More sharing options...
Solution elainetmy Posted July 30, 2013 Author Solution Share Posted July 30, 2013 I solved my problem by adding a frame to my band and add the images into the frame.I'm not sure why it solves the problem. Elaine. 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