The Report.save function runs the text template logic in the templated report and saves the output as a file specified by the string expression report_filename. The function is meant to be called from outside the templated report's logic.
If the templated report's format is Markdown, the report will automatically be converted to HTML before saving if the extension of report_filename is HTML-related (.html, .htm, or .cshtml). Otherwise, the output is saved as Markdown.
Return Value
The function returns a logical value of 1 (true) if successful and 0 (false) otherwise.