on 12-25-2013 12:22 PM
Hi,
I am new to the Crystal Report and first time I am using this one. In my project, I started using it and while compiling the code I got the error "Load Report failed".
I got in the below line exactly:
report.Load("CrystalReportTest.rpt");
Please help me any one why it is giving error.
Hi,
This error is self explainatory and simply means that your app is not able to find the report (.rpt).
Try hardcoding the actual path of the report in the load method.
For more info see this search, lot of info available.
-Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are couple of ways of loading a report and from your code it is not clear which you are trying. If you are trying to load a report from a folder, then you need to specify the folder and in your code it looks to me like you are missing the path to the report(?). E.g.;
report.Load("C:\\my_reports\\CrystalReportTest.rpt");
You may want to see the sample app vbnet_win_simplepreviewreport.zip. It can be downloaded from here:
Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
and while the sample is in VB, translating it to C# should be trivial.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.