deepakrsarangi Posted February 2, 2017 Share Posted February 2, 2017 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 More sharing options...
shertage Posted February 2, 2017 Share Posted February 2, 2017 Hi,Try to set Reset Type = "Page" for your variable. Link to comment Share on other sites More sharing options...
deepak.sarangi Posted February 2, 2017 Share Posted February 2, 2017 Thank You so much. That did the trick. Have a great day ahead. Link to comment Share on other sites More sharing options...
dcdacd Posted February 7, 2017 Share Posted February 7, 2017 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. 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