As some of them are actually retreived from elsewhere in the system I would like to control them in the codebehind on the aspx page. I have been trying for a while, but haven't been able to get it to work. I have set a default value in the variable in the report itself and everytime I open the page, the report is loaded with the default value of the variable, thus ignoring my line to set it.
These are the lines of code I use in my report:
(StiWebReport1 is on the aspx and a report is loaded, StiWebViewerFx1 is also on the aspx)
Code: Select all
StiWebViewerFx1.Report = StiWebReport1.GetReport();
StiWebViewerFx1.Report.Dictionary.Variables["ParentVendorID"] = new Stimulsoft.Report.Dictionary.StiVariable("ParentVendorID", 33);
StiWebViewerFx1.DataBind();