March 24th, 2004, 11:04 AM
Re: password protected database
I am not sure as to what platform you are working on. I am using VS.Net 2003 and using C#. Here is what I did to solve this issue:
Right before I set the dataSource for my report. I did this:
myReport report = new myReport();
string login = "UserID";
string passWd = "Password";
crystalReportViewer1.ReportSource = report;
This did it for me. I hope this helps.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!