rainforestnet / CrystalReportsNinja

A small Windows Console App that loads external Crystal Reports file, takes parameter inputs and export to various format or even print to printer
http://www.rainforestnet.com
93 stars 77 forks source link

Im getting this error #41

Open mikecrf121 opened 4 years ago

mikecrf121 commented 4 years ago

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)).

What version of crystal report are you using to run this?? ive tried 64 bit latest CRforVS 32 bit CRforVS and sp20 32 bit CRforVS

when i try 64 bit i get a different error saying could not load file or assembly crystaldecsion.reportappserver.comlayer version 13.0 whatever.

any help or fix would be very much appreciated!!!

mikecrf121 commented 4 years ago

So now i think i solved the above issue, I run this: C:CrystalReportsNinja-master\CrystalReportsNinja-mast er\Source\CrystalReportsNinja\bin\Release>CrystalReportsNinja -F C:\Desktop\webtest.rpt -E pdf -U ****User -P ***** 321! -i a- "StartMonth:08-01-2018" a-"Customer:812"

And i get this :

Report loaded successfully Database Login done Exception: Missing parameter values. Inner Exception: System.Runtime.InteropServices.COMException (0x8004100E): Missi ng parameter values. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(Expo rtOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRe questContext reqContext)

anyone able to help me debug??? anyway to see what paramaters im missing???

mikecrf121 commented 4 years ago

this can be closed, issue was with the run time, and i believe improper .rpt formatted files. thank you