Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
C#
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

 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900