report_exportPdf()

Read(239) Label: export, pdf file,

Description:

Export a report as a PDF file.

Syntax:

report_exportPdf(rpt, filePath)

Note:

This external library function exports a report file into a PDF format. 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.

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_exportPdf(A2,"D:\\test.pdf")

Export as test.pdf

5

=report_exportPdf(A2,"test.pdf")

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

Related functions:

report_config()

report_open()

report_run()