Jam.py documentation

extension

extension

domain: client

language: javascript

class Report class

Description

Use extension attribute to specify a report type. The server, based on the report template, first generates ods file. And if report extention is other that ods performs convertion using the LibreOffice.

The attribute value can be any extension that LibreOffice supports convertion to.

Example

function on_before_print_report(report) {
     report.extension = 'html';
}