Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml SSRS中的共享变量在新页面上重置_Xml_Variables_Reporting Services_Ssrs 2008_Shared - Fatal编程技术网

Xml SSRS中的共享变量在新页面上重置

Xml SSRS中的共享变量在新页面上重置,xml,variables,reporting-services,ssrs-2008,shared,Xml,Variables,Reporting Services,Ssrs 2008,Shared,我在SQL server data tools中创建了一个SSRS报告,然后创建了带有共享变量的自定义代码,这样,每当用户更改页面时,它都不会重置,在data tools预览中效果很好,一切都正常。但是,当我将报告的XML传输到我在VS(asp,js)中正在处理的项目时,共享变量并没有正常工作,在每个页面上,变量都会不断重置回初始值 这是我在报告中的自定义代码示例 Shared Dim Total As Integer = 0; Function SetTotal(Value as

我在SQL server data tools中创建了一个SSRS报告,然后创建了带有共享变量的自定义代码,这样,每当用户更改页面时,它都不会重置,在data tools预览中效果很好,一切都正常。但是,当我将报告的XML传输到我在VS(asp,js)中正在处理的项目时,共享变量并没有正常工作,在每个页面上,变量都会不断重置回初始值

这是我在报告中的自定义代码示例

   Shared Dim Total As Integer = 0;

   Function SetTotal(Value as Integer)
        Total += Value
   End Function

   Function GetTotal()
        return Total
   End Function
我做错什么了吗