report_exportDoc()

阅读(196) 标签: 导出, docx文件,

描述:

将报表导出为docx文件

语法:

report_exportDoc(rpt, filePath)

备注:

外部库函数,外部库的使用请参考《外部库使用指南》。
 
将报表导出为docx文件。没有计算的报表导出内容为报表模板。

参数:

rpt

ReportObject对象

filePath

导出文件路径,filePath可以是相对路径也可以是绝对路径,为相对路径时,基准目录为配置文件中<home>相关配置

返回值:

文件导出路径

示例:

 

A

 

1

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

 

2

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

 

3

=report_run(A2)

 

4

=report_exportDoc(A2,"D:\\test.docx")

导出test.docx文件

5

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

同上