ReportingServices ListChildren Method

  • Hi.

    I am populating an ASP.net page with a list of reports that exist in a particular folder on the SSRS server.

    I am using the code ReportServer.ListChildren("\MyFolder") to get a list of the reports.

    This works fine if the folder MyFolder actually exists but the code throws an error if MyFolder does not exist on the ReportServer.

    In this scenario I want to handle this separately instead of having the error message thrown.

    Is there a way in which I can check if the folder exists first of all prior to making the ListChildren call so that I can mange the absence of the folder without attempting to list the items in the absent folder?

    Thanks ain advance

  • Some things to try (I don't have my environment up): GetItemType("/MyFolder"). It should return the string "Folder". I am unsure what it returns if it does not exist.

    Russel Loski, MCSE Business Intelligence, Data Platform

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply