========= extension ========= .. js:attribute:: extension **domain**: client **language**: javascript **class** :doc:`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 ======= .. code-block:: js function on_before_print_report(report) { report.extension = 'html'; } See also ======== :doc:`Client-side report programming ` :doc:`Server-side report programming ` :doc:`print ` :doc:`create_param_form ` :doc:`on_before_print_report `