Jump to content
We've recently updated our Privacy Statement, available here ×

JRDesignImage compile become JRBaseImage in Page Header Band


elainetmy
Go to solution Solved by elainetmy,

Recommended Posts

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

  • Replies 1
  • 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...