Mats Aubell

Hi all

I've read through quite a lot of posts and threads regarding this issue but haven't found anything that matches mine to the point.

I have problems when loading a specific .rpt file. It opens and runs in Cystal Reports and I have opened many other .rpt files without any problems. Therefore I assume that there is no path issues or access problems.

So, the line which makes my head ache:

CrystalReportDocument.Load(InputFile); // Loads the Crystal Report

It gives me the following errors when I list out the exceptions (sorry for the spam, not too sure what is of importance and what is not):


Re: Crystal Reports for Visual Studio Loading a crystal report file gives this errormessage: Load report failed.

Mats Aubell

Here's an update:

I've come to the conclusion it must be something with the file, and have investigated it thoroughly. It appears it loads normal if I delete (or merge accordingly) 7 group headers in the rpt file. When merging some headers the quality becomes unstable as the text are sometimes left out some places and so on. It produces a rather large document, about 6225 pages, but is this any reason for the loss of quality that occurs after merging group headers in the file

I'm not very familiar with the Crystal Reports part of this so feel free to comment :)

Mats





Re: Crystal Reports for Visual Studio Loading a crystal report file gives this errormessage: Load report failed.

Mats Aubell

Final update:

If there is more than 80 Group Headers in the .rpt file, the file won't load. 80 or less, it loads fine.

Is there a solution to this or does it mean putting a constraint on the people writing the files to never exceed the magical group header limit





Re: Crystal Reports for Visual Studio Loading a crystal report file gives this errormessage: Load report failed.

Dharmesh Gandhi

Hi Guys,

I had the same issue reported.

I rebooted the web server and then copied over ReportViewer.dll to bin folder. Somehow exisitng ReportViewer.dll was causing this issue.

Overwriting this dll helped me resolve my issue.

Thank you.

Dharmesh Gandhi
(Microsoft , Brainbench & PMI Certified)






Re: Crystal Reports for Visual Studio Loading a crystal report file gives this errormessage: Load report failed.

Mats Aubell

Thank you for the reply Dharmesh!

I'm not sure it will help as I'm not running it on a webserver. I am running it in an application at the moment. Also, I'm not using the reportviewer at all. I'm just loading the file and exporting it to pdf, nothing else.

Mats