Page 1 of 1

Problem with the variable

Posted: Tue Feb 23, 2010 2:58 am
by misiek_1984
Hello

I have a report with the defined variable of type string. I use this variable to create the title of the report. The value of variable is set programmatically:

report.Item("Var") = value
report.Render()

However, once the report is rendered for the first time the value of the variable is ignored. I have debug the program and I am sure that the value of the variable is set properly.
Is is a bug or I am doing something wrong?


Problem with the variable

Posted: Tue Feb 23, 2010 12:26 pm
by Brendan
To set any variables you have defined on your report at runtime you must first compile the report

Code: Select all

report.Compile()
report.Item("Var") = value
report.Render()