Could not find report in manifest resources - Crystal Report / C #

I have a Windows application written in C # and I'm trying to display a crystal report using Crystal Report Viewer. My report name is "ReceivingReport" and I use the following line to show the report in the viewer:

receiptReport rpt = new receiptReport(); crystalReportViewer.ReportSource = rpt; 

I get the following error: Unable to find the report in the manifest resources. Please build the project, and try again. Unable to find the report in the manifest resources. Please build the project, and try again.

I tried installing the Build Action report file "GetReport.rpt" in the Embedded Resource, but still now luck .. Im using VS2010 ..

+6
c # winforms crystal-reports
source share
8 answers

A lot will go wrong with CR after a lot of search queries fix one of these fixes.

1) The full FullResourceName property in the report code (.cs) file will be incorrect if the containing folder has spaces in its name. The best solution is to rename the folder to remove spaces, if you manually edit the code file, the error will continue to be returned

2) Make sure the build property of the rtp file is set to Embedded Resource

3) Use Developer Express for reporting and avoid all headaches first

+17
source share

Well ... I had the same problem. My solution was to edit the report properties and change the user namespace.

Let's say that I scanned a report from the namespace "A", and my report was in the same tool namespace, but in a different DLL.

So, I cleared the user namespace ... and rebuilt everything.

The problem is resolved for me.

+5
source share

This is a stupid mistake made by a number of programmers. This only happens when a project or report is transferred or changed from one project to another project.

 "Unable to find the report in the manifest resources - Crystal Report / C#" 

Decision:

Go into the project report file .CS 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 am sure that you should be mistaken for free. If you don’t write me with an error: kapil.dev824@yahoo.com

+2
source share

Name the folder that contains the Crystal report without a space.

For example: the folder name "Report Section" as "ReportSection"

+1
source share

My problem was that the name of the directory in which my reports were located was the whole number to match the client codes we use. It so happened that Visual Studio named the class Reports._1234567 , while my catalog was "\ Reports \ 1234567". When I renamed the folder "_1234567", the folder corresponded to the class name, and everything was fine.

The following is indicated in the report code for the FullResourceName property:

 public override string FullResourceName { get { return "app700.Reports._1234567.CrystalReport1.rpt"; } set { // Do nothing } } 

The underscore was added by VS because you cannot have a class name that does not start with a letter or underscore .

+1
source share

My problem was resolved by deleting the folder containing the space. after I replaced him, this error disappeared.

:)

+1
source share

VS2010 on VB.Net. In the Solution Explorer window, I moved the .rpt file from the root folder to the subfolder for reports. This fixed the bug for me.

0
source share

I got the same error β€œCould not find report in manifest resources” in VS 2010 after manually copying * .rpt and * .vb files to another solution directory.

After checking the embedded resource that everyone is talking about in this message (it has already been installed on the embedded resource),

I solved the problem by right-clicking the .rpt file in Solution Explorer and selecting Run Custom Tool .

0
source share

All Articles