Skip to content

Report Assets

Report Assets

Users can upload asset files (e.g. images) which can be used when generating reports. For example, you may wish to generate a report with your company logo in the header.

Asset files are managed from the Admin Center, via the Report Assets panel. Staff users can upload new asset files, and remove assets which are no longer required.

Asset files can be rendered directly into the template as follows

<!-- Need to include the report template tags at the start of the template file -->
{% load report %}

<!-- Simple stylesheet -->
<head>
  <style>
    .company-logo {
      height: 50px;
    }
  </style>
</head>

<body>
<!-- Report template code here -->

<!-- Render an uploaded asset image -->
<img src="{% asset 'company_image.png' %}" class="company-logo">

<!-- ... -->
</body>

Asset Naming

If the requested asset name does not match the name of an uploaded asset, the template will continue without loading the image.

Assets location

Upload new assets via the Report Assets panel in the Admin Center to ensure they are uploaded to the correct location on the server.

There are various helper functions available to assist with embedding assets into templates.