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

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


deepakrsarangi

Recommended Posts

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

 

Link to comment
Share on other sites

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