I want to change the connectiong string to open Crystal Report(built-in) in VB.NET(2005).

VB Code:
  1. Dim rpt As New rptInvoice
  2. rpt.SetDatabaseLogon(userid,password,servername,databasename)
  3. CrystalViewer1.ReportSource=rpt
  4. CrystalViewer1.Show()


But the ServerName does not change. It still alert a message to input username and password(disable the field servername).

Please help me.