cancel
Showing results for 
Search instead for 
Did you mean: 

Load report failed

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188030
Active Contributor
0 Kudos


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.

http://search.sap.com/ui/scn#query=Load+report+failed%2C+crystal%2C+.net&startindex=1&filter=scm_a_s...

-Bhushan

Former Member
0 Kudos

Ya, but when I changed the path with fully qualified path, then I am getting following error. As per the error shown i don't have dotnet1 folder itself.

former_member183750
Active Contributor
0 Kudos

See KBA 1525432. Search box in top right corner. BTW.; the search string 'crystal net crdb_adoplus load' would have returned the KBA also. E.g.; try searching

- Ludek

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

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