Functions

Top  Previous  Next

FastReport.Net contains a lot of built-in functions (over 60). All functions are splitted to several categories and are accessible through the "Data" window:

 

functions

 

You may use a function in any expression, in the script (see the "Script" chapter), or print its value in the "Text" object. For example, the following text in the "Text" object:

 

[Sqrt(4)]

 

will be printed as "2" (square root of 4).

 

The following expression will return 4:

 

Sqrt(4) + 2

 

Let us look at the ways to insert a function in a report:

 

you may drag&drop a function from the "Data" window to a report page. The "Text" object will be created, which contains a function call. You have to edit the text to add parameters to the function call;
you can drag&drop a function to the script code;
in the expression editor, you can see a copy of the "Data" window which acts the same way  - you may drag items from it and drop them in the expression text.

 

Below we will describe each function in details.