Base64 image inside Page Header is not repeating after first page.

I have a Base64 image inside the pageheader. However upon running the report the image only displays on the first page, not on rest of the pages.

The JRXMLs are given as below:

<variable name="PageHeader" class="java.lang.String">
<initialValueExpression><![CDATA["iVBORw0KGgoAAAANSUhEUgAABh4AA...........AAAAASUVORK5CYII="]]></initialValueExpression>
</variable>
 
Page Header: 
 
<pageHeader>
<band height="55" splitType="Stretch">
<image>
<reportElement mode="Opaque" x="-10" y="-10" width="772" height="55" isPrintWhenDetailOverflows="true" uuid="81b42e7c-9af4-4c80-8034-2783000e584e">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<printWhenExpression><![CDATA[Boolean.TRUE]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA[new ByteArrayInputStream(Base64.decodeBase64($V{PageHeader}.getBytes()))]]></imageExpression>
</image>
<textField evaluationTime="Page">
<reportElement x="-5" y="2" width="735" height="33" forecolor="#050000" uuid="a719242d-3931-4867-9322-462e4cf0e9b9"/>
<textElement>
<font fontName="Arial" size="13" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Program / Project Status Report "+ $V{ProjectCode_Name} + $V{AsOfDate} + $V{VoyaStatusReportStage}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
 
Is there any other configurational entries, I missed???

 

deepakrsarangi's picture
Joined: Feb 1 2017 - 5:03pm
Last seen: 5 years 9 months ago
Hello user, you can get this finally ? Can you said me step by step how can you show me how do it? Thanks for all.
dcdacd - 5 years 10 months ago

2 Answers:

Hi,

Try to set Reset Type = "Page" for your variable.

shertage's picture
16038
Joined: Sep 26 2006 - 8:06pm
Last seen: 5 months 2 weeks ago

Thank You so much. That did the trick. Have a great day ahead.

deepak.sarangi's picture
Joined: Jun 17 2015 - 10:34am
Last seen: 4 years 11 months ago
Feedback
randomness