Databases Reference
In-Depth Information
VB
Dim items() As CatalogItem
items = _rs.ListChildren(“/”, True)
The last step is to loop through the returned list of items and add them to a drop-down list. Similar to
how the formats were loaded, create a class to help data-bind the report items. Let's take a look at the
code for this class.
C#
private class ReportItem
{
private string _name;
private string _path;
public ReportItem(string name, string path)
{
_name = name;
_path = path;
}
public string Name
{
get{return _name;}
}
public string Path
{
get{return _path;}
}
}
VB
Private Class ReportItem
Private _name As String
Private _path As String
Public Sub New(ByVal name As String, ByVal path As String)
_name = name
_path = path
End Sub
Public ReadOnly Property Name() As String
Get
Return _name
End Get
End Property
Public ReadOnly Property Path() As String
Get
Return _path
End Get
End Property
End Class
Search WWH ::




Custom Search