Thursday, March 22, 2012
Class Reference - Constructor with Arguments?
not see how I can instantiate that class with a constructor that has
arguments. Does it only do the default New() constructor?
I would like something like: m_MyClass = New MyClass(Version as Integer)I have not found a way to do this. I will perform further research on it
and update you once I have more information.
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi David,
In the Reference tab of report properties, if we specify a instance name we
can only use the default constructor. If you need something other than the
default constructor, you can instantiate the class in the <Code> property
of the report instead. You'll need to reference the assembly on the
References tab of the report properties, but you would't declare an
instance there.
Instead, you'd declare the instance and initialize it in the Code property:
For example,
Dim m_myClass As MyClass
Protected Overrides Sub OnInit()
m_myClass = new MyClass(1234)
End Sub
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
clarification on Reporting services
hi folks,
I want to display a message "no records retrieved" in the preview tab of the report in RS when no records are retrieved for a query specified in the data tab of the report in RS.Is there any custom code for this?How to accomplish this?Can anyone help me find a solution for this?Pls send me the procedure for this .
You could:
1. Set the message in the NoRows property of the data region bound to the dataset.
2. Display the message in a textbox which is hidden if the dataset has rows or visible otherwise.
|||Dear sir,
Thank you for your reply..I was successful with the first point.Can u tell me how to proceed with the second point?
How to display the message in the textbox?should i type something in the textbox value property?if so how?
Regards
Balaji
|||Drop a textbox in the report body with the desired text, e.g. "No data". Set the textbox Visibility Hidden expression to =IsNothing(First(Fields!<some field name>.Value, "<your dataset name>")) = Falsesqlsqlclarification on Reporting services
hi folks,
I want to display a message "no records retrieved" in the preview tab of the report in RS when no records are retrieved for a query specified in the data tab of the report in RS.Is there any custom code for this?How to accomplish this?Can anyone help me find a solution for this?Pls send me the procedure for this .
You could:
1. Set the message in the NoRows property of the data region bound to the dataset.
2. Display the message in a textbox which is hidden if the dataset has rows or visible otherwise.
|||Dear sir,
Thank you for your reply..I was successful with the first point.Can u tell me how to proceed with the second point?
How to display the message in the textbox?should i type something in the textbox value property?if so how?
Regards
Balaji
|||Drop a textbox in the report body with the desired text, e.g. "No data". Set the textbox Visibility Hidden expression to =IsNothing(First(Fields!<some field name>.Value, "<your dataset name>")) = False