Binding a form control to a variable

Stimulsoft Reports.NET discussion
Post Reply
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Binding a form control to a variable

Post by jmiller »

I was surprised I didn't find a topic on this already. What is the best way to bind a form control to a variable?
I create a variable in code using Dictionary.Variables.
I want the user to use the designer, create a form, and bind a control directly to this variable.
I am using RegData() to register my business data.
My business data is not created until the report is rendered (see my earlier time-intensive post).
I want my business data to use this variable as a filter.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Binding a form control to a variable

Post by HighAley »

Hello.
jmiller wrote:I was surprised I didn't find a topic on this already. What is the best way to bind a form control to a variable?
I create a variable in code using Dictionary.Variables.
I want the user to use the designer, create a form, and bind a control directly to this variable.
I am using RegData() to register my business data.
My business data is not created until the report is rendered (see my earlier time-intensive post).
I want my business data to use this variable as a filter.
You could use code like next:

Code: Select all

rep.Dictionary.Variables["Variable1"].ValueObject = dateTimePicker1.Value;
Thank you.
Post Reply