report_exportHtml()

Description:

Export a report as a HTML file or an MHT file.

Syntax:

report_exportHtml(rpt, filePath)

Note:

By default, this external library function exports a report into the HTML format; it outputs an MHT file when @x option is present. A report file that isn’t computed will be exported as a template.

Parameters:

rpt

A report object

filePath

The exported file path, which is either a relative path or an absolute path; for a relative path, its base directory is the content of <home> in the configuration file.

Options:

@x

Export the report file into an MHT format; the default format of the exported file is HTMl.

Return value:

An exported file path

Example:

 

A

 

1

>report_config("config\\raqsoftConfig.xml")

 

2

=report_open("D:\\test.rpx")

 

3

=report_run(A2)

 

4

=report_exportHtml(A2,"D:\\test")

Export as test.html

5

=report_exportHtml@x(A2,"D:\\test.mht")

Export as test.mht

6

=report_exportHtml(A2,"test")

With a relative path parameter, the exported file path is D:\test.html if the path set for <home> in the configuration file is “D:\”

Related functions:

report_config()

report_open()

report_run()