Hi, I have a custom assembly which I would like to store state between calls. In RDL, the following was declared: <Classes> <Class> <ClassName>MyNamespace.MyClass</ClassName> <InstanceName>MyInstance</InstanceName> </Class> </Classes> <CodeModules> <CodeModule>MyAssembly, Version=1.0.1972.42338, Culture=neutral, PublicKeyToken=null</CodeModule> </CodeModules> and I have this: <Code> Protected Overrides Sub OnInit() MyInstance.SetFormattingData(Parameters!FormattingData) End Sub </Code> and the code I've created in the assembly is like the following: namespace MyNamespace { public class MyClass { public MyClass() {} public void SetFormattingData(string formattingData) { FormattingData = formattingData; } // public property FormattingData is also declared. } } The formatting data is intended to be used across calls, so i wanted it to be initialised when the extension is loaded. But the only thing I get at the moment is the error on the post's Subject. Please help! Siew Fai MCP
I found out. Actually, there has been a number of discussion on this topic too (search "OnInit"). Need to qualify the report objects with "Report." when working with Parameters, Globals, and others. Siew Fai. MCP
Don't see what you're looking for? Try a search.
|