水晶报表-无法在客户端PC上加载数据库信息

时间:2019-03-13 11:44:59

标签: windows vb.net oracle11g crystal-reports

我使用vb.net,oracle和crystal报告,我有两个报告,一个具有连接“数据库专家---项目数据--- DataSet1,工作正常,没有问题,另一个具有连接”数据库专家---我的连接--- Sureguide“这个给我这个味精 Failed to load database information,....我应该怎么做才能解决这个问题

the one is working

the reports which not working

  

如果不是sgcnn.State = ConnectionState.Open然后               sgcnn.Open()           如果结束

    Dim rpt As New RptAccountsChart() 'The report created
    'Dim rpt As New RptChartOfAccountsrpt 'The report created.

    Try

        Dim comd As New OracleCommand("select * from ACCOUNT_JV order by ACCOUNT_CODE,HEAD_CODE,JV_CODE ", sgcnn)

        Dim da As New OracleDataAdapter(comd)

        Dim dt As New DataTable()
        da.Fill(dt)
        rpt.SetDataSource(dt)

        CRVChartOfAccounts.ReportSource = rpt

        rpt.SetDatabaseLogon("sureguide_admin", "ajaz661")

        rpt.Refresh()

    Catch ex As Exception

        MsgBox(ex.Message)

    End Try

0 个答案:

没有答案