Hi all,
Also i have face this problem but i resolve with following way you can try it
Code:
private void MYReport_Load(object sender, EventArgs e)
{
GenericDAL Gd = new GenericDAL();
string error = string.Empty;
int id = 1;
DataSet ds = Gd.GetGetStudentData(out error, id);
DataTable dtD = ds.Tables[0];
CrMain Cr = new CrMain();
Cr.SetDatabaseLogon("developer", "Arjun");
Cr.SetDataSource(dtD);
crystalReportViewer1.ReportSource = Cr;
}
i think it will help.
Regards
Arjun Choubey