?
Solved

Loading crystal report using ASP.Net throws CrystalDecisions.CrystalReports.Engine.LoadSaveReportException. Load Report failed.

Posted on 2007-04-05
5
Medium Priority
?
1,010 Views
Last Modified: 2012-06-27
hi guys .
i am getting the following error when trying to load an crystal report and export it to PDF:
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException. Load Report failed.

I am using ASP.Net 1.1 , C#, and Crystal 8.5.
See the syntax below:
CrystalDecisions.CrystalReports.Engine.ReportDocument doc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();                   
doc.Load(fileName);// assume filename is the full path to the file. THIS IS WHERE THE ERROR OCCURS

The report contains 2 subreports. One contains an image, and the other contains an field from a database table. When  i remove the subreport that contains the field from the database table, everything works fine.
When i verify database on the report (and subreport), everything is up to date.

Any suggestions?

thanks
0
Comment
Question by:dharmesh69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 18857483
Can you run the subreport on its own?

mlmcc
0
 

Author Comment

by:dharmesh69
ID: 18858018
hi mlmcc

i think i figured out the problem if your report contains tab spacing, then it throws this error.
In my case the problem was that the field retrieved from the database contained tab spacing. Once i removed all the tabs, the report was generated and exported to pdf correctly.

I am not sure if Crystal has a fix for this though.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18859319
Haven't heard about that.

Glad you got it resolved.

mlmcc
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19280672
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question