Expressions
Using Data Fields in Expressions
Expressions can contain values from data sources. A string representation of the field is used to reference that field from the data source. The proper syntax for the reference is the name of the data source and the field name with a full-stop ...
Using Dictionary Variables
Variables can be created in the Designer Dictionary for later use in expressions. By specifying the name of a variable in an expression, the value of the variable will be called and included in the report. The proper syntax is the name of the ...
Using Functions in Expressions
Built-in Functions There is a variety of built-in functions available in the Report Designer. These functions can be accessed directly from the data dictionary, or from within the Expression Editor. Here is an example of a built-in function: ...
Multi Line Expressions
Multiple lines of text can be produced in a report by a single expression. To create a multi-line expression, insert a line feed before any new line. To do this, press the Enter key at the appropriate place in the code editor. There is no limit to ...
Text Expressions
Text expressions are the simplest expressions. Here are some examples: SampleText 54321 Example All of the expressions above are strings, and there are no calculations. These expressions would be printed as they have been defined. These types of ...
Using Component Properties
The properties of any component within a report can be used when creating expressions. Syntax Whether the report language is VB.NET or C#, the syntax is the same: The name of the component and the property name separated by a full-stop character or a ...
Using Aliases in Expressions
Aliases can make it easier to understand expressions in reports. If you have a variable called “VariableA” and you have set an alias for it to “VA,” the variable can be referenced by Name OR Alias. By Name: {VariableA} By Alias: {[VA]} Syntax – ...
Conditional Expressions
Conditional Expressions are not permitted. Conditional behavior can be forced, when necessary, in two different ways. IIF Function {IIF(Condtion, ValueA, ValueB} In the above calculation, the “Condition” is tested to determine if it evaluates ...
Calculating Values in Expressions
An expression is made up of variables, functions, and field values from databases. A value can be calculated and either printed or displayed in a report. Code in an Expression If you know the programming language of a report, you can include code ...