HowTo: Insert a header logo into tabular reports
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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.
First you need to export the template.
Upload your logo via: Admin --> User Interface --> Files
Open that jrxml file in a text editor.
Locate the <pageHeader> tag:
Then modify the content of that tag to look something like that:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.