User`s guide
mlreportgen.dom.Document class
12-71
mlreportgen.dom.Document class
Package: mlreportgen.dom
Report definition document
Description
Create mlreportgen.dom.Document object that defines:
• The type of output (HTML or Microsoft Word)
• Where and how to store the output
• The template to use
To generate a PDF report, create a Word report and use the rptview function with the
'pdf' argument to convert the Word report to PDF.
Construction
documentObj = Document() creates an HTML document named Untitled.htmx in
the current directory, using the default HTML template.
documentObj = Document(outputPath) creates an HTML document at the specified
location.
documentObj = Document(outputPath,type) creates a document of the specified
type (for example, Word), using the default template for that type.
documentObj = Document(outputPath,type,templatePath) creates a document,
using the specified document type and Word or HTML template corresponding to the
type setting.
Input Arguments
outputPath — Path for the output file generated by the document
string