Hi
I have installed Sap Crystal reports for Sap B1 on my system. In Visual Studio i have below files but it is giving error - The Type or namespace name "Crystal Reports does not exist in the namespace. CrystalDecisions (Are you missing assembly refrence.)
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
Regards
Jayraj ChhayaPosted Feb 5, 2024, 12:58 PM
This error typically occurs when the required assembly reference for Crystal Reports is missing in the project. To resolve this issue, you need to add the appropriate assembly reference to your project.
Here are the steps to add the assembly reference in Visual Studio:
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework {version}\Managed.CrystalDecisions.CrystalReports.EngineandCrystalDecisions.Shared.After adding the assembly references, rebuild your project to ensure that the references are resolved correctly. You should now be able to use the Crystal Reports namespace without any errors.
If you continue to encounter issues, make sure that you have installed the correct version of SAP Crystal Reports for SAP B1 that is compatible with your Visual Studio version. Additionally, ensure that the necessary runtime components are installed on your system.
Jignesh KumarPosted Feb 5, 2024, 3:39 AM
Hello Ramco,
Please refer to this one,
https://itecnote.com/tecnote/c-cs0246-the-type-or-namespace-name-crystaldecisions-could-not-be-found/
https://copyprogramming.com/howto/cs0246-the-type-or-namespace-name-crystaldecisions-could-not-be-found