ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Getting Started with Reports for WinForms > Getting Started with Reporting > Creating VBScript Expressions

Creating VBScript Expressions

Expressions are widely used throughout a report definition to retrieve, calculate, display, group, sort, filter, parameterize, and format the contents of a report. Some expressions are created for you automatically (for example, when you drag a field from the Toolbox onto a section of your report, an expression that retrieves the value of that field is displayed in the text box). However, in most cases, you create your own expressions to provide more functionality to your report.

C1Report relies on VBScript to evaluate expressions in calculated fields and to handle report events.

VBScript is a full-featured language, and you have access to all its methods and functions when writing C1Report expressions. For the intrinsic features of the VBScript language, refer to the Microsoft Developer's Network (MSDN). C1Report extends VBScript by exposing additional objects, variables, and functions.

The following topics demonstrate how you can create your own expressions to provide more functionality to your report.


Formatting a Field According to Its Value

Resetting the Page Counter

Hiding a Section if There is No Data for It


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.