Value of the variable in dynamic columns report ?

Stimulsoft Reports.WEB discussion
Post Reply
thanhhai1x8x
Posts: 2
Joined: Fri Oct 03, 2014 8:26 am

Value of the variable in dynamic columns report ?

Post by thanhhai1x8x »

Hi,
I have a report. These columns in this report getting in the database. I had to push data to report success. And now, I need to add some variables to the report (ex : DateTime, Address ...) but it did not work. Please help me!
In my code :
Code
Code
Report0.jpg (110.56 KiB) Viewed 1440 times
mrt file:
Report1.jpg
Report1.jpg (138.84 KiB) Viewed 1440 times
But Report:
Report2.jpg
Report2.jpg (56.29 KiB) Viewed 1440 times
This is my example.
Thanks so much! ^^!
Attachments
Sample.zip
(6.54 KiB) Downloaded 140 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Value of the variable in dynamic columns report ?

Post by HighAley »

Hello.

You should set the variable's value different way.
This code works after compiling the report.
But you should use code like next:

Code: Select all

report.Dictionary.Variables("Variable1").Value = yourCancatenatedString
or add the report.Compile() before the assignment to the LBLDate variable.

Thank you.
thanhhai1x8x
Posts: 2
Joined: Fri Oct 03, 2014 8:26 am

Re: Value of the variable in dynamic columns report ?

Post by thanhhai1x8x »

Thank you very much ^^!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Value of the variable in dynamic columns report ?

Post by Andrew »

We are glad to help you! Have a nice day!
Post Reply