The value is not however being displayed ... either I am referenceing the field incorrectly or the value cannot be allocated at runtime in this manner.
Can someone please confirm that this can be done or not ?
And if it can be done I would appreciate some pointers.
Please find below the snippets of from within my C# application
Code: Select all
Dictionary ReportVariableValue;
....
foreach(KeyValuePair pair in ReportVariableValue)
{
report.Dictionary.Variables[pair.Key].Value = pair.Value;
}
* ReportVariableValue has valid data i.e. pair.Key is the variable name in the stumulsoft designer e.g. "VirtualPageNo" and pair.Value has a valid string e.g. "1"
* Report is compiled
Postconditions:
* I have checked through debug mode and determined that report.Dictionary.Variables[] has the correct values
* I then do an export to a PDF .... the report is displayed as a PDF but the Variables I have changed have not been set the runtime values.