Accessing Reports from Report Server under current User Credentials.

  • Hi.

    I am writing a code for a tree view menu type. It generates all reports which resisdes on RServer. But I dont want to show those reports for whom the current user have no permissions. I try to use Impersonation method but it does not helpful.

    Can some one help me?

    Reg

    /Nave

  • Hi..

    Try using ListChildren("/",false);

    I hope...this should work...:)

    Niraj

  • Hi Niraj!

    I use the following code and it is false already. This is some thing regarding user credentials. Hopefully you will see the problem more clear by having a look on the code.

    ReportService2005.ReportingService2005 catalog = new ReportService2005.ReportingService2005();

    catalog.Credentials = System.Net.CredentialCache.DefaultCredentials;

    CatalogItem[] items;

    items = catalog.ListChildren("/", false);

    DropDownList ddl;

    foreach (CatalogItem forEachFile in items )

    {

    ItemTypeEnum type = (ItemTypeEnum)forEachFile.Type;

    if( credentials has access )

    ddl.Add(forEachFile.Name);

    else

    nothing();

    }

    }

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

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