getFileName()

The textReportDriver.getFileName() function returns the name of the driver file that contains your report information. The function is useful when you create a unique file name through TextReportDriver.createDriverFromTempFile() and need to know where the file is (for example, to send it to a physical device such as a printer).

Syntax

  textReport.textReportDriver.getFileName()
  returns (fileName STRING)
textReport
The name of a variable that is based on the TextReport external type.
textReportDriver
The name of a variable that is based on the TextReportDriver external type.
fileName
The name of the driver file that contains your report information.

Example

In the following example, reportName contains the name of the temporary file that is created in the first line of code:

myReportDriver = TextReportDriver.createDriverFromTempFile();
myReport.setReportDriver(myReportDriver);
...
reportName STRING = myReport.myReportDriver.getFileName();

Feedback