I have a report parameter that gets its value from a custom assembly. I am
not sure when or where to call the assembly. The examples show that I can
override the OnInit() method of the report.
Protected Overrides Sub OnInit()
m_myClass = new MyClass(User!Language, Paramters!Territory)
End Sub
Aside from the OnInit(), what other methods can be overriden from the report
code window?
TIA.You need to call your class from the default value of the report parameter,
right?
If yes then you probably need to have your class initialized before it is
called.
This can be done either thru Code (define public member variable of your
class, instantiate the class in OnInit) or you can specify member variable
name and class name in the classes tab. In this case report server will
automatically create member variable and instantiate your class using
default constructor (constructor with no parameters).
In both cases you can get your class instance using Code.member_variable
syntax.
--
Alex Mineev
Software Design Engineer. Report expressions; Code Access Security; Xml;
SQE.
This posting is provided "AS IS" with no warranties, and confers no rights
"TechnoSpyke" <technospyke@.yahoo.com> wrote in message
news:uqJNO#KBFHA.2568@.TK2MSFTNGP11.phx.gbl...
> I have a report parameter that gets its value from a custom assembly. I
am
> not sure when or where to call the assembly. The examples show that I can
> override the OnInit() method of the report.
> Protected Overrides Sub OnInit()
> m_myClass = new MyClass(User!Language, Paramters!Territory)
> End Sub
> Aside from the OnInit(), what other methods can be overriden from the
report
> code window?
> TIA.
>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment