Hi,
I just can't complete the exercise on page 100: "Nested group green bar effect".
The visual basic code snippet on page 103:
Public Function IncrementVariable(var as Microsoft.ReportingServices.ReportProcessing.OnDem andReportObjectModel.Variable) as Double
var.Value = var.Value + 1
return var.Value
End Function
keeps giving me an error:
Error 1 There is an error on line 1 of custom code: [BC30526] La propriété 'Value' est 'ReadOnly'. G:\PROJET\SQL Server Databases\AdventureWorks2008R2\Exercices\Rapports\ NstGrpGrnBar_Exercice-p101\NstGrpGrnBar_Exercice-p101\NstGrpGrnBar_Report.rdlc NstGrpGrnBar_Exercice-p101
My current environment is the following:- Windows VISTA SP2
- Visual Studio 2010 SP1
- SQL Server 2008 R2 Express Edition with Advanced Services SP2 CU1
I typed/built the report from within Visual Studio 2010 report designer. It just keeps giving me the error mentionned.
Also, I observed that from "Report Properties", when creating a variable, the "readonly" checkbox is not there.
I would expect the VS2010 Report designer to work just like the Report Builder 3.0 but I not so sure to be honest.
My question is how I can make this work. Is this a simple setting in VS2010 or else in SQL Server 2008 R2? I really don't know.
Hope someone will be able to help.
Thanks in advance,
Stephane
P.S.
I don't know why but, when publishing my post, "
Microsoft.ReportingServices.ReportProcessing.OnDem andReportObjectModel.Variable" got changed to "
Microsoft.ReportingServices.ReportProcessing.OnDem andReportObjectModel.Variable" as your publisher inserted by itself a "blank space" between "...OnDem" and "andReport...". But I assure that there was no blank space in my typing. Funny thing is that when I came back to edit my post, while editing, those spaces were not there... I saved and same problem again. Edit again, no spaces. Save again, still same problem.