描述:
将报表导出为Html或者Mht文件
语法:
report_exportHtml(rpt, filePath)
备注:
外部库函数,默认导出文件为html格式,使用选项@x时导出mht文件。没有计算的报表导出内容为报表模板。
参数:
rpt |
ReportObject对象 |
filePath |
导出文件路径,filePath可以是相对路径也可以是绝对路径,为相对路径时,基准目录为配置文件中<home>相关配置。 |
选项:
@x |
导出为mht文件,不添加选项时默认导出html文件 |
返回值:
文件导出路径
示例:
|
A |
|
1 |
>report_config("config\\raqsoftConfig.xml") |
|
2 |
=report_open("D:\\test.rpx") |
|
3 |
=report_run(A2) |
|
4 |
=report_exportHtml(A2,"D:\\test") |
导出test.html文件 |
5 |
=report_exportHtml@x(A2,"D:\\test.mht") |
导出test.mht文件 |
6 |
=report_exportHtml(A2,"test") |
相对路径导出,如果配置文件中<home>配置的路径为“D:\” ,那么文件导出路径即D:\test.html |
相关概念: