Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error
Strange Crystal Reports error Strange Crystal Reports error
Strange Crystal Reports error
Go Back  Xtreme Visual Basic Talk > > > Strange Crystal Reports error


Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2004, 11:22 AM
AtmaWeapon's Avatar
AtmaWeaponStrange Crystal Reports error AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default Strange Crystal Reports error


I am binding my Crystal Report to a dataset instead of a database. I have successfully done this in 4 or 5 forms, but every time I try to do it from within my work project I get the following error:
Quote:
An unhandled exception of type 'CrystalDecisions.CrystalReports.Engine.InternalException' occurred in crystaldecisions.crystalreports.engine.dll

Additional information: "Unable to find the report in the manifest resources. Please build the project, and try again.
I have no idea what this means. As I said, I have four or five test forms that worked perfectly with this code. I have duplicated all of those steps in this project, only to have it fail mysteriously. The lines of code it screws up on are (specific line of code is bolded):
Code:
        Dim cr As New CrystalReport1
        cr.SetDataSource(theTemplate)

        reportViewer.ReportSource = cr
Does anyone know what is going on? I've rebuilt the solution multiple times, and it just doesn't work.
Reply With Quote
  #2  
Old 03-22-2004, 06:22 PM
MKoslof's Avatar
MKoslofStrange Crystal Reports error MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

This is probably occurring because the .rpt/.dsr that your report object is referring to is not compiled with the DLL/EXE as a resource in the assembly manifest.

Add the file to your project, and it *should* automatically compile into your application. If the file is already in the project, make sure the "Build Action" property says "Embedded Resource".
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #3  
Old 03-22-2004, 06:59 PM
AtmaWeapon's Avatar
AtmaWeaponStrange Crystal Reports error AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

I added and re-added it, and double-checked to make sure it said "Embedded Resource", but it just wasn't working. So I tested four or five times in other projects. I followed the same steps every time, and everything worked. I tried those steps in this project, and it did not work. So, I solved the problem by adding a new project to the solution and doing all my reports in the separate project.

I have no explanation for it, but at least it works now.
Reply With Quote
  #4  
Old 03-23-2004, 06:26 AM
MKoslof's Avatar
MKoslofStrange Crystal Reports error MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

Hmm...it appears somewhere within the original project file your reference got corrupted. Sometimes computers are strange
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #5  
Old 04-14-2005, 05:57 PM
shayward shayward is offline
Newcomer
 
Join Date: Apr 2005
Posts: 1
Default Namespace

I had the same problem but it turned out to be as a result of having set the Custom Tool Namespace property of the RPT file. I hope that this is of help to someone else

Yeah, it would actually like to put it into an organized namespace. Then again, nothing in crystal reports ever works right.
Reply With Quote
  #6  
Old 04-14-2005, 07:48 PM
MKoslof's Avatar
MKoslofStrange Crystal Reports error MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

Hmm..interesting. Thanks for the info and sharing with everyone
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #7  
Old 07-04-2006, 01:53 PM
Cristofer_L Cristofer_L is offline
Newcomer
 
Join Date: Jul 2006
Posts: 1
Default Unable to find the report in the manifest resources. Please build the project, and tr

I had the same problem, the solution I found was to set the property
"Build Action" to "Embebed resource"
(right button click on rpt file / properties)

Yo tuve el mismo problema, la solucion que encontre fue seteando el valor de la propiedad "Accion de generacion" a "Recurso incrustado"
(click en boton derecho del raton sobre el archivo de reportes / propiedades)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter a Crystal Reports Field from VB Ancestral Database and Reporting 3 02-16-2004 06:18 PM
Help with Crystal reports 9 run-time error JoseDEC Database and Reporting 11 01-08-2004 05:45 PM
updating text boxes while running script jpaugh78 Excel 2 12-24-2003 10:30 PM
Strange Causeless(?) Error unclebill General 4 11-10-2003 01:49 AM
'server has not yet been opened' Crystal Reports error shafan Database and Reporting 2 05-17-2003 10:36 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error Strange Crystal Reports error
Strange Crystal Reports error
Strange Crystal Reports error
 
Strange Crystal Reports error
Strange Crystal Reports error
 
-->