User`s guide

rptview
11-105
rptview('mydoc.htmx');
Convert a Word Report and Display It in a PDF Viewer
Use the rptview function to convert a Word report to PDF and display it in a PDF
viewer.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
p = Paragraph('Hello World');
append(d,p);
close(d);
rptview('mydoc.docx','pdf');
Display Report Using the OutputPath Property
Display a report using the value of the OutputPath property of the
mlreportgen.dom.Document object of the report.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
p = Paragraph('Hello World');
append(d,p);
close(d);
rptview(d.OutputPath);
Display Word Report Based on Name
Create two reports with the same name, but with different formats and content. Specify
the format to display the appropriate report.
import mlreportgen.dom.*;
d = Document('mydoc','html');
p = Paragraph('Hello World');
append(d,p);
close(d);
dWord = Document('mydoc','docx');
p = Paragraph('Hello again, World');
append(dWord,p);