Windows form application error with crystal report


I'm in big trouble. I'm novice in windows form application. Its my first application at office. My office management give me a source code. But they don't know anything about it.

I run those code on visual studio 12 (64 bit). Everything is running but crystal report not working. Throws error.

error is:

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 '{98CDE168-C1BF-4179-BE4C-F2CFA7CB8398}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

here is the screenshot:

enter image description here

here is the code:

ReportDAL rDal = new ReportDAL();
            receipt r = new receipt();

            DataTable dt = rDal.GetInvoiceHeader(vId);

            //string ww = GetInvoiceHeader(vId);
            r.SetParameterValue("pReportDeliveryTime", GlobalData.reportDeliveryTime);
            crystalReportViewer1.ReportSource = r;

Can anyone give me solution elaborately. Because i don't know visual studio very much.

Thanks in advance.

asked on Stack Overflow Oct 4, 2017 by (unknown user) • edited Oct 4, 2017 by (unknown user)

2 Answers


The same problem occured with me too, right now.

When I installed CR 13 Update 21, my project gave the same exception during runtime.

I just removed all of the references of CrystalDecision from Solution Explorer (which actually belonged to a previous version of CR i.e. CR 13 Update 20).

Then I added fresh references from Solution Explorer => References => Add Reference menu. I selected the required CrystalDecision packages from the window. Rebuilt, and the problem is gone now. enter image description here

answered on Stack Overflow Oct 13, 2017 by shahsani • edited Nov 8, 2018 by Hainan.Z

Please install the lower runtime version of Crystal report in client Computer. Then it will be working fine. Like currently you are using vs2012 cr runtime then use runtime of 2008 it will be working fine.

I have the same issue but now I changed to lower version then it works fine for me.

answered on Stack Overflow Oct 13, 2017 by parth

User contributions licensed under CC BY-SA 3.0