Script

Top  Previous  Next

Script is a higher-level programming language, which is part of the report. Script can be written in one of the following .Net languages:

 

C#
VisualBasic.Net

 

A script is applicable in many places. Using the script, you can do the following:

 

perform data handling, which cannot be done via regular means of the FastReport engine;
control the printing of report pages and bands on the page;
control the interaction between elements on dialogue forms;
control the formation of dynamic "Table" objects;
and many more.

 

In order to see the report's script, switch to the "Code" tab in the designer:

 

scriptMain

 

Script language can be set in the "Report|Options..." menu. This is supposed to be done just after you have created a new report, because when changing the language, the existing script gets deleted.

 

reportOptionsScript