Reputation: 1093
I am working on crystal report, i am using data set in c#, i create them by wizard, after that i choose the crystal report and created a report through the same dataset, and wrote following code.
String temp = "c:\\a.pdf";
DataSet1 ad = new DataSet1();
ReportDocument d = new ReportDocument();
d.Load("c:\\CrystalReport2.rpt");
d.SetDataSource(ad.Tables[0]);
d.Refresh();
At table[0] my employee tables lies. Problem is i am getting empty reports.. although my table is pretty much populated with records.
Upvotes: 0
Views: 1806
Reputation: 1093
I actually solved the problem my self.. I was lacking the table names which i have to send to dataset while filling them. Because of difference of name of dataset and provided name they table was un able to be fetched so the reports were empty.
Upvotes: 1