Crystal Reports problem on Windows 10 (1 Viewer)

bjsteyn

Registered User.
Local time
Today, 23:08
Joined
May 15, 2008
Messages
113
Hi,

I am wondering if someone can help me ... I wrote a system in VB.Net 2012 (Visual Studio Express 2012). It has been running fine on Windows 7 32bit but our client wishes to upgrade to Windows 10 32 bit now. I am busy testing the system on 64bit Windows 10 and it works fine on my Windows 7 64 bit. I am having the following problem with Crystal Reports.

Whenever a reports load i get the following error. See attached image ...

This is my code that odbc connections settings to the report ....

------------------------------------------------------------------------------------------------

Dim ciReportConnection As New CrystalDecisions.Shared.ConnectionInfo

ciReportConnection.ServerName = "Driver={" & Configs.odbc_driver & "};Server=" & configDB.dbconfig.Host & ";Port=" & configDB.dbconfig.Port & ";"
ciReportConnection.DatabaseName = configDB.dbconfig.Database
ciReportConnection.UserID = configDB.dbconfig.Username
ciReportConnection.Password = configDB.dbconfig.Password


objReportDocument.SetDatabaseLogon(configDB.dbconfig.Username, configDB.dbconfig.Password, "Driver={" & Configs.odbc_driver & "};Server=" & configDB.dbconfig.Host & ";Port=" & configDB.dbconfig.Port & ";", configDB.dbconfig.Database)

'//Assign data source details to tables

For Each table In objReportDocument.Database.Tables
table.LogOnInfo.ConnectionInfo = ciReportConnection
table.ApplyLogOnInfo(table.LogOnInfo)
Next

------------------------------------------------------------------------------------------------

It only happens on Windows 10. I dont have a problem on Windows 7.
 

Attachments

  • Untitled.png
    Untitled.png
    27.6 KB · Views: 812

bjsteyn

Registered User.
Local time
Today, 23:08
Joined
May 15, 2008
Messages
113
Problem Solved. The odbc driver never installed when i installed it. lol, always something stupid.
 

Users who are viewing this thread

Top Bottom