General information

Top  Previous  Next

Contrary to other report generators, script in FastReport contains only what you have written. In the script, you can:

 

add your variables, methods and properties to the main script class;
create a report object's events handler;
add new classes to the script, if needed. A class can be added either before the ReportScript main class or after it.

 

You cannot:

 

delete, rename or change the visibility area of the ReportScript main class;
rename a namespace in which the main class is located.

 

When the report is running, the following occurs:

 

FastReport adds into the script a list of variables, whose names corresponds with the names of the report objects. This is done before compiling the script and allows you to refer to the report objects by their names;
an expression handler is added to the script, which handles all expressions found in the report;
a script is compiled, if it is not empty;
the script class is initialized;
the report is run.