i want to change server name dynamically in crystal report using c#.net, but i dont know how to do this.
please help me.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Feb 8, 2014, 4:53 AM
Ajinkya BanPosted Feb 8, 2014, 4:03 AM
Shweta LodhaPosted Feb 3, 2014, 10:27 AM
ConnectionInfo crConnectionInfo = new ConnectionInfo();crConnectionInfo.ServerName = "YOUR SERVER NAME";crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";crConnectionInfo.UserID = "YOUR DATABASE USERNAME";crConnectionInfo.Password = "YOUR DATABASE PASSWORD";// CrystalReportViewer controlcrViewer.ReportSource = ReportSourceSetup(crFileInfo, crConnectionInfo);crViewer.Refresh();
Complete code: http://www.daniweb.com/software-development/csharp/threads/214322/c-crystal-reports-changing-database-and-server-name