Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using Crystal Report with Visual Studio 2012, but the report viewer doesn't show report on runtime, here is my code,

{
SqlConnection con = new SqlConnection("Data Source=Maroof;Initial Catalog=ProSMSDB;Integrated Security=True");
DsStudent ds = new DsStudent();
SqlDataAdapter sda = new SqlDataAdapter("SELECT RegistrationID, FirstName, Address, Contact, DOB, AdmissionDate FROM dbo.ProSMS_StudentRegistration", con);
sda.Fill(ds.StudentView);
CrptStudent report = new CrptStudent();
report.SetDataSource(ds);
CrystalReportViewer1.ReportSource = report;

}
Posted
Comments
NaibedyaKar 16-Oct-14 13:03pm    
Did you add the fields to the report viewer properly?
MaroofQaiser 20-Oct-14 3:43am    
yes i have already declared, my dateset propoerly show the data, but runtime page is empty

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