25.1 File Locations and Contents for Report Theming

To customize the reports within a given theme, navigate to the /themes/<new_theme_name>/<language>/reports folder. There are two files in this folder that you can customize with your own look and feel:

The corporate logo of the organization is embedded in the costing report .pdf. Copy the header_logo.png file to a graphic editor to determine its dimensions, then scale the corporate logo you want to use to the same dimensions, rename it to header_logo and save it in .png format in the /reports folder.

The following example shows the contents of the styles.jrtx file, which is a style sheet in .xml format:

<?xml version=”1.0?>
<!DOCTYPE jasperTemplate
  PUBLIC "-//JasperReports//DTD Template//EN"
  "http://jasperreports.sourceforge.net/dtds/jaspertemplate.dte">

<jasperTemplate>

        <style name="title" backcolor=#660066" forecolor="#FF0000"/>
        <style name="pageHeader" backcolor=#FF00FF" forecolor="#0000FF"/>
        <style name="header1" backcolor=#9999FF" forecolor="#FF00FF"/>
        <style name="header2" backcolor=#9CB8FF" forecolor="#00FFFF"/>
        <style name="header3" backcolor=#E6E6FF" forecolor="#FF00000"/>
        <style name="header4" backcolor=#F5F5FF" forecolor="#FF00FF"/>
        <style name="tableHeader" backcolor=#F0FF0F" forecolor="#00FFFF"/>
        <style name="separator" backcolor=#00FFFF" forecolor="#FF0000"/>
        <style name="body" backcolor=#FFFFFF" forecolor="#F000000"/>

You need to experiment with this style sheet to determine the suitability of the organization’s colors or complementary colors when embedded in the report layout.