Results 1 to 2 of 2

Thread: Ssrs 2005

  1. #1

    Thread Starter
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Ssrs 2005

    i can show the Report in a winform using Reportviewer Control
    thats good, but this for only the user "sa" pwd "***"
    i want to change the DataSource Credentials in runtime can this be done

    i try
    Code:
    ReportingService2005 rs;
    
    // if i put this line it works fine 
    //rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    // if i add this line it gives me error
    rs.Credentials = new System.Net.NetworkCredential("aaa", "412");
                            
                
    			bool forRendering = true;
    			string historyID = null;
    			ParameterValue[] values = null;
                DataSourceCredentials[] credentials = null;
    			ReportParameter[] parametersSSRS = null;
    			ValidValue[] pvs = null;
    
    parametersSSRS = rs.GetReportParameters(report, historyID, forRendering, values, credentials);
    and here the code stop
    it gives me erorr

    The request failed with HTTP status 401: Access Denied.
    Last edited by avrail; Nov 9th, 2008 at 05:06 PM. Reason: Title:
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  2. #2

    Thread Starter
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: Ssrs 2005

    is it hard or iam posting the Question in the wrong section?
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width