ActiveReports 8 > ActiveReports User Guide > How To > Page Report How To > Use Constant Expressions in a Theme |
In the Theme Editor, you can define constant expressions to be used in a theme. Later, you can apply a constant expression to the report’s control by selecting it in the Value field of that control.
Also, you can apply a constant expression to a report’s control in code by using the following syntax (VB code example):
=Theme.Constants!Header
=Theme.Constants("Header")
Constant expressions allow you to define a name and an associated value to be used in themes.
Use the following instructions to create and use constant expressions in themes.
To define a constant expression
To use a constant expression