load report fail in crystal reports doesn't have solution.
Posted
by mr-developer
on Stack Overflow
See other posts from Stack Overflow
or by mr-developer
Published on 2010-04-20T22:44:55Z
Indexed on
2010/04/20
22:53 UTC
Read the original article
Hit count: 263
c#
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
© Stack Overflow or respective owner