Hi,
I changed my web project over to using a state server rather than inProc e.g.
Once I implemented this my parametered reports failed, ok not too much of a problem I thought, I will use parameters to pass the information into the report, and use the NeedDataSource event to collect the correct data, this has worked for everything that is bound to controls, but on a lot of my reports I programmically set the Values of some of the text boxes, this cannot be done within the NeedDataSource event because at this point the textboxes are already set (I think?),
so in the past I was able to do the following
in the constructor, but this now does not work because this work is now done in the NeedDataSource event, so I have tried the following
I changed my web project over to using a state server rather than inProc e.g.
sessionState
mode="SQLServer"
Once I implemented this my parametered reports failed, ok not too much of a problem I thought, I will use parameters to pass the information into the report, and use the NeedDataSource event to collect the correct data, this has worked for everything that is bound to controls, but on a lot of my reports I programmically set the Values of some of the text boxes, this cannot be done within the NeedDataSource event because at this point the textboxes are already set (I think?),
so in the past I was able to do the following
this.txtCompany.Value ='this is a test'
in the constructor, but this now does not work because this work is now done in the NeedDataSource event, so I have tried the following
Telerik.Reporting.Processing.TextBox MyCompany = (Telerik.Reporting.Processing.TextBox)txtCompany;
MyCompany.Text = 'this is a test'
;
of course the Telerik.Reporting.Processing.TextBox is different to Telerik.Reporting.TextBox so it does not work.
does anyone have a solution to this problem, specifically programmically assigning values to textboxes on reports in any event after the constructor, I have maybe 20 textboxes on each report so setting an event for each textbox would be slow.
thanks in adavnce.
Alex