Skip to main content

Using Component Properties

T
Written by Tim Sublette

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 decimal point, within curly braces.

{Component.Property}

VB.NET is not case sensitive, while C# is case sensitive.

To access a calculated value from a component, use the property that contains the result you need. For instance, if the component has a hyperlink value which calculates a hyperlink from the other component properties, you would enter the expression:

{MyComponent.HyperlinkValue}

When necessary, you can use the component properties in calculations. The following example would show the area taken up by the component:

{MyComponent.Width*MyComponent.Height}

Did this answer your question?