Crystal Report Logon Failed
-
This is my first Crystal Report with .net and don't know why I am getting this error. Have been researching for a solution all day. Hope someone can help. Here is my code just to test the connection but always fails. CrystalDecisions.Shared.TableLogOnInfo LogonInfo = new CrystalDecisions.Shared.TableLogOnInfo(); CrystalReport1 Rpt = new CrystalReport1(); CrystalReportViewer1.LogOnInfo = new CrystalDecisions.Shared.TableLogOnInfos(); LogonInfo.ConnectionInfo.ServerName = "MyServer"; LogonInfo.ConnectionInfo.Password = ""; LogonInfo.ConnectionInfo.DatabaseName = "TestDB"; LogonInfo.ConnectionInfo.UserID = "sa"; Rpt.Database.Tables[0].ApplyLogOnInfo(LogonInfo); Response.Write(Rpt.Database.Tables[0].TestConnectivity());//-------this returns false