[]
In order to create fields that do not use raw data, Calculated fields are the best option. Calculated fields contain expressions that are evaluated at run-time. They are used to generate those data values that are not stored in the data base.
Some predefined expressions are available in the dropdown of Calculated Fields. To add such fields, follow the steps below:
To define a Calculated field and add the field in the FlexReport Designer application:
Create a new report.
Bind the report with 'Orders Details' Table.
In Group Header, add a Text field 'Total' to display label for the total price.
Go to Data tab, and right-click the Main data source and select Add Calculated Field. VBScript Editor appears.
In the VBScript Editor, write the following expression:
Quantity*UnitPrice
Drop the above mentioned Calculated field as shown.
Preview the report.