Hi,
I created my second Crystal Reports application and I am having issues getting it to work on a clients PC. Based on what I learned from my first application, I know that I needed to install the runtime on the clients PC, which I did. When I run the app, nothing happens. No exception is thrown or anything. I see the mouse wait cursor come up (the spinning windows cursor) for about 5 seconds and then nothing happens. The odd thing is that I am able to run the code from my PC just fine when I use the msi setup file I created. I have no idea where to look to figure this out... Any help would be appreciated.
Thanks,
Chris Kretman
Request clarification before answering.
Ok, so now I can get the code to work on the client PC but I am still seeing the same error that I see on our server when it is run there. To solve the initial issue, I needed to install the 32 bit version rather than the 62 bit version of the runtime. That being said, I am still seeing this error, where the code is failing on the last line provided:
'connect the viewer to the data tables
If CrystalReportViewer2.LogOnInfo IsNot Nothing Then
Dim tlInfo As TableLogOnInfos = CrystalReportViewer2.LogOnInfo
For Each tbloginfo As TableLogOnInfo In tlInfo
tbloginfo.ConnectionInfo = ConnectionInfo
Next
End If
'fill the subreport data tables
For Each subrep As ReportDocument In rpt.Subreports
For Each table As Table In subrep.Database.Tables
If table.Name <> "Sheet1_" Then
table.LogOnInfo.ConnectionInfo = ConnectionInfo
table.ApplyLogOnInfo(table.LogOnInfo)
End If
Next
Next
'Update the data on the report
rpt.VerifyDatabase()
rpt.Refresh()There was an error Processing PickSlipPrint. Error: System.InvalidCastException: 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)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Refresh()
at CrystalDecisions.ReportSource.EromReportSourceBase.Refresh(RequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Refresh(RequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Refresh()
at CrystalReportsApplication1.Form1.CrystalReportViewer1_Load(Object sender, EventArgs e) in C:\Users\chris.kretman\source\repos\CrystalReportsApplication1\CrystalReportsApplication1\Form1.vb:line 105
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.