Created
March 26, 2013 13:42
-
-
Save terra819/5245448 to your computer and use it in GitHub Desktop.
Get list of reports under a path and populate a dropdown list.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' 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