shehab.nearat Posted April 22, 2020 Share Posted April 22, 2020 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 More sharing options...
mlopez_1 Posted April 24, 2020 Share Posted April 24, 2020 Are image in Tittle band instead of page header band or column header band?Regards,Mariano 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