createDriverFromTempFile()

The TextReportDriver.createDriverFromTempFile() function creates a unique report driver file to hold your report information as it is generated by the report engine. The unique file name is particularly important when you are generating the report from a web interface, where multiple users can generate the same report at the same time.

Typically, you call this function directly from the TextReportDriver external type. Although it is possible to call the function from a variable that is based on the driver type, you must also be able to create a driver variable without another driver variable already in existence. The function is declared as static, meaning that it can exist apart from any variables you create based on the TextReportDriver.

Syntax

  TextReportDriver.createDriverFromTempFile()
  returns (reportDriver TextReportDriver)
reportDriver
A reference variable that is based on the TextReportDriver external type.

Example

In the following example, you can call functions from the myReportDriver variable after you have created it.

myReportDriver = TextReportDriver.createDriverFromTempFile();
...
myReportDriver.closeFile();

Feedback