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 (See External Library Guide) exports a report into the HTML format. A report file that isn’t computed will be exported as a template.

Parameter:

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.

Option:

@x

Export the report file into an MHT format

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 function:

report_config()

report_open()

report_run()