Results 1 to 2 of 2

Thread: Pass Login Credentials

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    1

    Pass Login Credentials

    I am using VS2010 in vb.net

    I have created a Crystal Report that links to the a SQL Server 2008 R2 database by OLEdb connection. The report has been created in the integrated report writing tool in VS2010.

    The report runs fine when previewing and prompts for password that I enter and then returns the data as expected.

    I have now loaded the report into a CrystalReportViewer on a form. When I run the form it prompts for the password. It stores, Server, Database and User Name but not the password. This I need to pass so the user is does not have to enter a password.

    How do I pass these details?

  2. #2
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    Re: Pass Login Credentials

    Try this.

    Dim cryRpt As New ReportDocument
    cryRpt.SetDatabaseLogon(user, password)

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