load report fail in crystal reports doesn't have solution.
- by mr-developer
hi all,
i'm using c sharp and crystal reports in visual studio 2008 in my application.
the problem is that there is a form that i have crystalreporviewer on,
when i call the form from form1 by button click event, the form and the report loads perfect, but when i call the from from another from that i've called from form1, this exception appears "load report fail". how can i solve this problem. i've googled and i didn't find any solution. I think there is a difference between form1 and the other form which i call the form of the report from.
this is the code of the report form load
try {
cryRpt.Load("..\\..\\CrystalReport1.rpt");
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
} catch(Exception ex) {
MessageBox.Show(ex.Message);
}
thanks in advance for any replies