Crystal Report Deployment in C#
-
Hi all, I got a pressing question which i needed help answering. I have develop a crystal report in vs 2003.net using c#. I am able to run it smoothly on the development machine. However when i deploy it at the client side, the crystal report keep prompting me to log in although i have hardcoded the logOnInfo. A part of the code: CrystalReport1 rsource = new CrystalReport1(); rsource.SetDatabaseLogon("uid", "pwd", "server1","db1"); this.crystalReportViewer1.LogOnInfo = new TableLogOnInfo(); this.crystalReportViewer1.LogOnInfo.Add(logOnInfo); this.crystalReportViewer1.ReportSource = rsource; Any idea wat went wrong? :confused:
-
Hi all, I got a pressing question which i needed help answering. I have develop a crystal report in vs 2003.net using c#. I am able to run it smoothly on the development machine. However when i deploy it at the client side, the crystal report keep prompting me to log in although i have hardcoded the logOnInfo. A part of the code: CrystalReport1 rsource = new CrystalReport1(); rsource.SetDatabaseLogon("uid", "pwd", "server1","db1"); this.crystalReportViewer1.LogOnInfo = new TableLogOnInfo(); this.crystalReportViewer1.LogOnInfo.Add(logOnInfo); this.crystalReportViewer1.ReportSource = rsource; Any idea wat went wrong? :confused:
try it -- ReportDocument *rptdoc = new ReportDocument(); rptdoc->Load("c:\temp\1.rpt"); //crystal report template filename rptdoc->SetDatabaseLogon("userid", "password", "server", "database"); this->crystalReportViewer->ReportSource = rptdoc; -- hoping this help.