Variable not resolved
Posted: Tue Jun 27, 2017 7:23 am
Hi,
I'm having an issue with a report. I design it first in the editor, and a chart legend is defined with the syntax of a variable (something like {ChartTitle}).
Then by code, I load the template, and set the variable by code : this.report.Dictionary.Variables.Add("MyCategory", "ChartTitle", val);
Then I have 2 cases :
First : I call "this.report.Design()", in which case my variable is properly resolved in the designer, and then if I call render + Save, then my value is in the report
Second : I don't call "this.report.Design()", in which case my variable isn't resolved, and the Legend in the mdc file is still "{ChartTitle}".
What should I do to have the proper behaviour without calling the "Design" method ?
I'm having an issue with a report. I design it first in the editor, and a chart legend is defined with the syntax of a variable (something like {ChartTitle}).
Then by code, I load the template, and set the variable by code : this.report.Dictionary.Variables.Add("MyCategory", "ChartTitle", val);
Then I have 2 cases :
First : I call "this.report.Design()", in which case my variable is properly resolved in the designer, and then if I call render + Save, then my value is in the report
Second : I don't call "this.report.Design()", in which case my variable isn't resolved, and the Legend in the mdc file is still "{ChartTitle}".
What should I do to have the proper behaviour without calling the "Design" method ?