Skip to content

Instantly share code, notes, and snippets.

@terra819
Created March 26, 2013 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terra819/5245448 to your computer and use it in GitHub Desktop.
Save terra819/5245448 to your computer and use it in GitHub Desktop.
Get list of reports under a path and populate a dropdown list.
' sample reporting server url http://MyServer/ReportServer/ReportService.asmx
Private Sub LoadSampleReports()
Dim rs As New ReportingService
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim item As CatalogItem
For Each item In rs.ListChildren("/SampleReports", False)
If item.Type = ItemTypeEnum.Report Then
DropDownList1.Items.Add(New ListItem(item.Name, item.Path))
End If
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment