Getting error in Crystal Report

Posted by Abhi24h under ASP.NET on 12/6/2012 | Points: 10 | Views : 1684 | Status : [Member] | Replies : 1
CS0234: The type or namespace name 'CrystalReports' does not exist in the namespace 'CrystalDecisions' (are you missing an assembly reference?)

Source Error:
Line 5: using System.Web.UI;
Line 6: using System.Web.UI.WebControls;
Line 7: using CrystalDecisions.CrystalReports.Engine;

Please help to solve this problem..

Abhishek Kumar
Redeemer Engisoft Pvt.Ltd


Posted by: Alexhitc8 on: 12/6/2012 [Member] Starter | Points: 25

Are you using Visual Studio?
If you are using Visual Studio and getting this error, you had missed out to add reference to CrystalDecisions.CrystalReports.Engine.dll.
Go to solution explorer, expend your project. You will see References folder under project tree. Right-Click on it and choose Add Reference. Add Reference dialog box will appear. From the list under .NET tab find and select CrystalDecisions.CrystalReports.Engine and click OK. You will see CrystalDecisions.CrystalReports.Engine under References folder in Solution Explorer. Then try Build the project again. Hope it would work.

I am sorry for can't show you with screen shots. I am a newbie and I don't know how to post images and explanation text together here.


Abhi24h, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response