SecurID® Governance & Lifecycle Blog

Subscribe to the official SecurID Governance & Lifecycle community blog for information about new product features, industry insights, best practices, and more.

HowTo: Insert a header logo into tabular reports

BorisLekumovich
Venerated Contributor Venerated Contributor
Venerated Contributor
4 2 516

Following a post that Frank posted a while ago: HowTo: Insert a watermark into tabular reports

 

There may be a requirement of branding the reports results with a customer logo. See example with a logo below (relevant logo to these days )

The way to achieve this only works for PDF or RTF exports of a report result.

 

pastedImage_1.png

 

First you need to export the template.

pastedImage_3.png

 

Upload your logo via: Admin --> User Interface --> Files

 

Open that jrxml file in a text editor.

Locate the <pageHeader> tag:

 

pastedImage_4.png

 

Then modify the content of that tag to look something like that:

 

pastedImage_9.png

 

The code from the image (for easier cut-n-paste):

 

 

<pageHeader>

        <band height="62" splitType="Stretch">    

            <image onErrorType="Blank" evaluationTime="Now">

                <reportElement x="0" y="1" width="1000" height="37"/>

                <imageExpression><![CDATA["/home/oracle/jboss-4.2.2.GA/server/default/deploy/aveksa.ear/aveksa.war/custom/images/rsaconf.jpg"]]></imageExpression>

            </image>

        </band>

    </pageHeader>

 

Then you can import that modified report template again. You can only do this, when you create a new report.

 

Again, this ONLY works for PDF or RTF exported report results

 

 

Enjoy

Boris

2 Comments