Solved

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

Posted on 2007-04-05
5
929 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
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Can you run the subreport on its own?

mlmcc
0
 

Author Comment

by:dharmesh69
Comment Utility
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 100

Expert Comment

by:mlmcc
Comment Utility
Haven't heard about that.

Glad you got it resolved.

mlmcc
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now