Click here to Skip to main content
14,667,169 members
Rate this:
Please Sign up or sign in to vote.
CReport.SimpleCrystalReportViewer simple = new CReport.SimpleCrystalReportViewer(); // Form 
simple.Show();
CReport.CrystalReportCustomerContactList report = new CReport.CrystalReportCustomerContactList();
report.SetDatabaseLogon(db.UserName, db.Password, db.ServerName, db.DataBase);
report.Load();

simple.crystalReportViewer1.ReportSource = report;
simple.crystalReportViewer1.RefreshReport(); 


What I have tried:

I am, new to Crystal Reports, I made Crystal Report and while I open the report during run time, it asks for database login details. So I need to type the login details every time I click for a report during run time. I tried to pass Login details to CrystalReportViewer but still problem persist. Kindly help me with this issue
Posted
Updated 30-May-16 19:46pm
v2
Comments
akp1103 31-May-16 1:57am
   
I do have the same problem.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100