report_config()

Read(4148) Label: read, configuration file, information,

Description:

Read information from the report configuration file.

Syntax:

report_config(filePath, funfile)

Note:

This external library function (See The Programmer’s Guide to RaqReport ) reads information from the report configuration file, including the main directory and the report license file path, and loads the license file to authenticate it.

Parameter:

filePath

A file path, which is either an absolute path or a relative path, or a class path; for a relative path, its base directory is the application root directory; esProc default is the root directory

funfile

The path of the configuration file of a user-defined function, which is either an absolute path or a relative path, or a class path; for a relative path, its base directory is the same as explained above

Return value:

Configuration file object

Example:

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

A relative path; filePath is relative to the esProc directory.

>report_config("D:\\esProc\\config\\raqsoftConfigReport.xml")

An absolute path.

>report_config("config\\raqsoftConfigReport.xml","config\\customFunctions.properties")

Both filePath and funfile are relative to the esProc directory.

>report_config("config\\raqsoftConfigReport.xml","customFunctions.properties")

Both filePath and funfile are relative to the class path.