如何使用SSL连接将Crystal报表连接到MySql?

时间:2014-07-19 07:23:22

标签: mysql vb.net crystal-reports google-cloud-sql

之前,我使用这种方法设置我的报告'动态连接信息:

Public Sub LogOn(ByVal poReport As    CrystalDecisions.CrystalReports.Engine.ReportDocument, ByVal strServer As String, ByVal strTable As String, ByVal strUsername As String, ByVal strPassword As String)
    Dim loConnInfo As New CrystalDecisions.Shared.ConnectionInfo
    loConnInfo.ServerName = strServer
    loConnInfo.DatabaseName = strTable
    loConnInfo.UserID = strUsername
    loConnInfo.Password = strPassword
    loConnInfo.IntegratedSecurity = False
    Dim loTables As CrystalDecisions.CrystalReports.Engine.Tables
    Dim loTable As CrystalDecisions.CrystalReports.Engine.Table
    Dim loTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
    loTables = poReport.Database.Tables

    For Each loTable In loTables
        loTableLogonInfo = loTable.LogOnInfo
        loTableLogonInfo.ConnectionInfo.UserID = strUsername
        loTableLogonInfo.ConnectionInfo.Password = strPassword
        loTableLogonInfo.ConnectionInfo.ServerName = strServer
        loTableLogonInfo.ConnectionInfo.DatabaseName = strTable
        loTableLogonInfo.ConnectionInfo.IntegratedSecurity = False
        loTable.ApplyLogOnInfo(loTableLogonInfo)
    Next
End Sub

但现在,我转移到使用SSL连接和证书的google cloud sql,所以我也必须通过SSL传递SSL连接信息,我搜索了任何SSL属性或其他要分配的东西,但我没有&#39 ;找到!

如何通过vb.net将Crystal Report连接到具有SSL连接和证书的MySql实例(我的意思是动态连接,而不是静态连接)?

由于

0 个答案:

没有答案