I'm new to Crystal Reports and I'm having a bit of trouble getting connected to my database to produce the report. I did a bit of searching and came up with the following code:
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.ServerName = "SBS2003"
CrystalReportViewer1.LogOnInfo(1).ConnectionInfo.DatabaseName = "CCMS"
CrystalReportViewer1.LogOnInfo(2).ConnectionInfo.UserID = "SA"
CrystalReportViewer1.LogOnInfo(3).ConnectionInfo.Password = "PassMe"
CrystalReportViewer1.DataBind()
This gives me an index error. I sure would appreciate any helpful suggestions.
Thanks in Advance, Jim
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.ServerName = "SBS2003"
CrystalReportViewer1.LogOnInfo(1).ConnectionInfo.DatabaseName = "CCMS"
CrystalReportViewer1.LogOnInfo(2).ConnectionInfo.UserID = "SA"
CrystalReportViewer1.LogOnInfo(3).ConnectionInfo.Password = "PassMe"
CrystalReportViewer1.DataBind()
This gives me an index error. I sure would appreciate any helpful suggestions.
Thanks in Advance, Jim