Page 1 of 1

Value of the variable in dynamic columns report ?

Posted: Tue Oct 07, 2014 4:14 am
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 1444 times
mrt file:
Report1.jpg
Report1.jpg (138.84 KiB) Viewed 1444 times
But Report:
Report2.jpg
Report2.jpg (56.29 KiB) Viewed 1444 times
This is my example.
Thanks so much! ^^!

Re: Value of the variable in dynamic columns report ?

Posted: Tue Oct 07, 2014 1:00 pm
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.

Re: Value of the variable in dynamic columns report ?

Posted: Wed Oct 08, 2014 2:34 am
by thanhhai1x8x
Thank you very much ^^!

Re: Value of the variable in dynamic columns report ?

Posted: Wed Oct 08, 2014 8:16 am
by Andrew
We are glad to help you! Have a nice day!