I have a windows application written in C# and am trying to display crystal report using crystal report viewer. The name of my report is \"receiptReport\" and I am using fol
My problem was solved by removing a folder which contain space . after i change it then this error is gone.
:)
My issue was that the directory's name where my reports was located was all numbers in order to correspond to the client codes we use. So what happened was that Visual Studio named the class Reports._1234567
, while my directory was "\Reports\1234567". When I renamed the folder "_1234567" then the folder matched the class name and everything worked fine.
In the report's code behind the FullResourceName
property is this:
public override string FullResourceName {
get {
return "app700.Reports._1234567.CrystalReport1.rpt";
}
set {
// Do nothing
}
}
The underscore character was added by VS because you can't have a class name that does not start with a letter or underscore.
Well... I had the same problem. My solution was to edit the properties of the Report, and change the Custom Name Space.
Lets say that I was caling the report from Name Space "A", and my report was in the same Tool Name Space but in other DLL.
So, I've cleared the Custom Name Space... and rebuilt everything.
Problem solved for me.
This is a silly mistake done by a number of programmers. It actually happens only when you transfer or change a project or report from one project to another project.
"Unable to find the report in the manifest resources - Crystal Report / C#"
Solution:
Go into the project's Report Form's .CS file Now You have:
public override string FullResourceName
{
get
{
//Note this path it must be yours project name Or full path of Crystal report
return "FullPath_from_project_name.Crystalreport.rpt";
}
set
{
// Do nothing
}
}
I"m deadly sure you must Error free If not mail me with Error:kapil.dev824@yahoo.com
Name the Folder name which contains the Crystal Report, without Space.
For Eg: Folder Name "Report Section" as "ReportSection"
VS2010 in VB.Net. In the Solution Explorer window, I moved the .rpt file from the root folder to a sub folder for reports. This fixed the error for me.