User`s guide
11 Functions – Alphabetical List
11-104
rptview
Display DOM report
Syntax
rptview(reportPath)
rptview(reportPath,'pdf')
rptview(reportName,format)
Description
rptview(reportPath) displays the report reportPath in an appropriate viewer,
based on the file extension. You can use the Document.OutputPath property to specify
reportPath.
rptview(reportPath,'pdf') converts a Word report to PDF and displays the report
in a PDF viewer.
rptview(reportName,format) displays the report reportPath in an appropriate
viewer, based on the format specified in format.
Examples
Display Report in HTML Viewer
Display an HTML report. Include the file extension when you specify the report name in
the rptview function.
import mlreportgen.dom.*;
d = Document('mydoc','html');
p = Paragraph('Hello World');
append(d,p);
close(d);