【发布时间】:2018-08-08 14:13:12
【问题描述】:
对于我们的报表环境,我们允许用户“在线”运行报表(此代码基于 CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument)或“离线”,即直接在 Business Objects 服务器上安排报表。此代码基于 CrystalDecisions.Enterprise.Desktop.Report。
对于在线报告,我们可以使用以下代码以编程方式设置提供程序:
If crTableNew.ConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE Then
crLogonInfo = CType(crAttributes("QE_LogonProperties"), PropertyBag)
crLogonInfo("Data Source") = serverName
crLogonInfo("Initial Catalog") = databaseName
crLogonInfo("Provider") = "SQLNCLI11"
End If
但是,offline 的等效代码似乎没有公开“Provider”属性。等价的对象大致是这样的:
CrystalDecisions.Enterprise.Desktop.Report.ReportLogons.Item(tableIndex) 但似乎没有提供者的属性。
有人可以帮忙吗?
【问题讨论】:
标签: crystal-reports business-objects business-objects-sdk