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

Image inside Page Header only printed on first page?


shehab.nearat

Recommended Posts

I have a logo image in my Page Header and while the other text and stuff are shown on every page as is the expected behavior of elements in a Page Header, the image is only shown on the first page?

I am hardcoding the bytes in my jrxml and assigning to a variable, meaning I am not passing in the input stream in my application. Then I am referencing that variable to create the image.

This is my jrxml concerning the image (I havent added the actual bytes for privacy purposes)

<variable name="logo" class="java.lang.String">        <initialValueExpression><![CDATA["goAAAANSUhEUgAAACoAAblahblah"]]></initialValueExpression></variable><image scaleImage="RetainShape" isUsingCache="true" onErrorType="Icon">    <reportElement positionType="Float" x="0" y="2" width="60" height="59" uuid="7df72a07-61b7-40e3-bd8a-680c425d003d"/>    <imageExpression><![CDATA[new java.io.ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64($V{logo}.getBytes()))]]></imageExpression></image>

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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