Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

Good Day to All,

I Am working in VB.NET using Visual Studio 2015.
Before talking about the error i want to share a reason behind this.

Actually all the things were working good. But a few days ago my computer system got faulty. I had to changed the hard drive and reinstall operating system, visual studio and all the other things.
After this re installation the error became.

When i want to print the SAP Crystal Report then the Following Error Comes

Unable to cast COM object of type 'CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass' to interface type 'CrystalDecisions.ReportAppServer.Controllers.ISCRReportSource'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{31E7715A-8AD0-4D1C-958E-C1BE0A6F2D0C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).


But Strange thing is that before the re installation it was working correctly.

I am totally failed to figure it out what the reason behind this ???

If anyone help me i will be grateful for this act of kind.

What I have tried:

I have tried nothing because i have no idea as this error was not coming before the reinstalling the system. And i did no made any change in the code after reinstalling the system.
Posted
Updated 23-Oct-17 11:40am

1 solution

Download and re-install the Crystal Reports components for Visual Studio - I would uninstall them first.
Crystal reports for Visual Studio downloads[^]
Remove the references from your Project & add them back in by browsing to the correct location.
I mainly work in C# but the same principle holds for VB, ensure you do not have the Crystal references set to Copy Local. If you do you will experience issues when you deploy because you need to install the Crystal Reports run-time on the machine you deploy your app to

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900