DSN
Database
1
Posts
1
Posters
0
Views
1
Watching
-
How to connect Crystal Report with DSN using C# Code? CrystalReportViewer1.ReportSource=Server.MapPath("CrystalReport1.rpt"); CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.UserID="sa"; CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.Password="abc"; CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.ServerName="."; CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.DatabaseName="db"; Instead of Database Name, I want to use DSN(XYZ); What will be the syntax? CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.DSN="XYZ"; above Code will not run.