We are facing Exception at report.Load("rpt file path");
Exception:
CrystalReportsException was unhandled
load report failed.
plz help why this exception occured?
also tel while writing the address i.e rpt file path which slashes(forwar or backword)we have to use?
Loading
Keyur PatelPosted May 31, 2013, 5:35 AM
Crystal Report Exception is comming due to following reason.
1) Make sure that your report path is correct.
2) Make sure you have full permission to all the users for temp folder or report folder.
3) If you use impersonate then try to remove impersonate true from web config file
Your report file path would be forward slashes.
report.Load("../../CrystalReport1.rpt");
You can refer following link how to call Crystal report in WPF.
http://www.c-sharpcorner.com/UploadFile/nipuntomar/crystal-report-viewer-in-wpf-part-1/
http://www.c-sharpcorner.com/UploadFile/nipuntomar/crystal-report-viewer-in-wpf-part-2/
http://www.codeproject.com/Tips/74499/Crystal-Report-in-WPF
http://www.codeproject.com/Articles/142064/Step-by-Step-Creation-of-Crystal-Report-using-its