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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 7, 2014, 11:53 PM EST
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 3, 2014, 5:27 AM EST
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
Ajinkya Ban32 reputationPosted Feb 7, 2014, 11:03 PM EST