Skip to Content
author's profile photo Former Member
Former Member

Load report failed

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 26, 2013 at 09:58 AM


    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_site%28scm_v_Site11%29&filter=scm_a_modDate%28*%29&timeScope=all

    -Bhushan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 26, 2013 at 04:08 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.