How can I add a variable by Code

Stimulsoft Ultimate discussion
Post Reply
waleedhm
Posts: 39
Joined: Fri May 31, 2013 1:26 pm

How can I add a variable by Code

Post by waleedhm »

Hello.
How can I add a variable in report by Code and save it in report
Thanks in advance
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How can I add a variable by Code

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

report.Dictionary.Variables.Add(new StiVariable("Variable1", 10));
Thank you.
waleedhm
Posts: 39
Joined: Fri May 31, 2013 1:26 pm

Re: How can I add a variable by Code

Post by waleedhm »

Hello,
work fine thanks Aleksey
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How can I add a variable by Code

Post by HighAley »

Hello.

We are always glad to help you.

Thank you.
Post Reply