User`s guide
Display a Report
13-19
Display a Report
The DOM API rptview function allows you to display a generated report in a viewer
appropriate to its document type: the Microsoft Word editor for Word documents, an
HTML browser for HTML reports, and Adobe Acrobat for PDF reports.
The rptview function takes two arguments:
• The path of the report
• The output type: 'html', 'docx', or 'pdf'
If you omit the second argument (the output type), rptview uses the output type from
the report’s extension.
If an HTML report is in zipped format, rptview creates a copy of the report in your
temporary directory and displays the temporary copy. If you specify 'pdf', the function
uses Word to convert the report to PDF format. It then displays the report in Adobe
Acrobat.
See Also
Functions
rptview
Related Examples
• “Create a Report Program” on page 13-3