Click here to Skip to main content
11,584,612 members (71,774 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,

I am using following link to make a report,

Generate a Report using Crystal Reports in Visual Studio 2010

when I was add a table on report viewer and run my project then it will get an
error "Load report failed" on following line,

rptDoc.Load(Server.MapPath("../Reports/SimpleReports.rpt")); 

I have also run my project under administrator rights but still it gets the same error.

please guided me regarding how to load the report.
Posted 7-Dec-11 20:35pm
Edited 7-Dec-11 20:38pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
thatraja at 8-Dec-11 2:49am
   
Right, 5! but what about other cases, see mine
kunal naik at 9-Dec-11 0:10am
   
thanks for your reply but I already go through the link which you give, it doesn't solve the error which I have during running the project.
I have occur an CrystalReportException error under which that report does not load. So how I load the report in VS 2010 Crystal Report.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
v2
Comments
koolprasad2003 at 8-Dec-11 3:29am
   
Yes.5.
kunal naik at 9-Dec-11 0:11am
   
thanks for your reply but I already go through the links which you give, it doesn't solve the error which I have during running the project.
I have occur an CrystalReportException error under which that report does not load. So how I load the report in VS 2010 Crystal Report.
thatraja at 9-Dec-11 0:27am
   
Check my updated answer. I have created a new Tip/Trick(3rd link in answer) with more possible cases. Check it & give my feedback there.
Monjurul Habib at 9-Dec-11 0:48am
   
nice links, 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 1,703
1 Sergey Alexandrovich Kryukov 1,267
2 Abhinav S 711
3 Dave Kreskowiak 687
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web04 | 2.8.150707.1 | Last Updated 9 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100