report_exportPdf()

Read(331) Label: export, pdf file,

Description:

Export a report as a PDF file.

Syntax:

report_exportPdf(rpt, filePath)

Note:

This external library function (See External Library Guide) exports a report file into a PDF 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:

@p

Export a report as a paginated PDF

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

report_config()

report_open()

report_run()