【发布时间】:2021-07-13 15:58:15
【问题描述】:
我收到错误0x800A5077,我尝试导入CrystalActiveXReportViewerLib10 和CrystalReportsCommonObjectModelLib,但它仍然没有工作。
Call ReportConnection(CInspAuditList, "Pab_Prod")
CInspAuditList.ReportFileName = My.Application.Info.DirectoryPath & "\MAuditList.rpt"
Call SubReportConnection(CInspAuditList, "Pab_Prod")
CInspAuditList.set_ParameterFields(0, "mchno; " & frmMachine.machine & " ;true")
CInspAuditList.set_ParameterFields(1, "batch; " & CDbl(frmMachine.batch) - 1 & " ;true")
CInspAuditList.set_ParameterFields(2, "Points; " & InpStdPt & " ;true")
CInspAuditList.set_ParameterFields(3, "ovrpt; " & OvrPoints & " ;true")
CInspAuditList.Action = 1
CInspAuditList.Action = 1时出现错误
vb.net 帮我声明CInspAuditList as AxCrystal.AxCrystalReport
这是我的连接功能:
Public Function ReportConnection(ByRef CrystalReport1 As AxCrystal.AxCrystalReport, ByRef dsnname As String) As Boolean
CrystalReport1.Connect = "dsn=" & dsnname & ";UID=" & gstrID & ";PWD=" & gstrPassword & ";DSQ="
End Function
我想知道导致错误发生的原因以及我的连接是否正确
【问题讨论】:
标签: vb.net crystal-reports crystal-reports-2008