Description:
Output a report as a docx file.
Syntax:
report_exportDoc(rpt, filePath)
Note:
The external library function (See External Library Guide) outputs a report as a docx file, or the content of a to-be-calculated report as template.
Parameter:
rpt |
A report object |
filePath |
The URL through which a report is output, which can be a relative parth or an absolute path. Refer to the related configuration in the configuration file <home> for the base directory when the parameter is a relative path |
Return value:
A file URL through which the report is output
Example:
|
A |
|
1 |
>report_config("config\\raqsoftConfig.xml") |
|
2 |
=report_open("D:\\test.rpx") |
|
3 |
=report_run(A2) |
|
4 |
=report_exportDoc(A2,"D:\\test.docx") |
Output A2’s report as test.docx |
5 |
=report_exportDoc(A2," D:\\test ") |
Same as above |