Our company has a Reports Viewer application written in VB6 that implements the Crystal Reports API. We have a customer that is using Oracle 11g for their backend database. Whenever they run a report using this application, they are prompted for a username and password. This should not be occurring because we are programmatically acquiring a previously saved username and password from a configuration file and setting the ConnectionInfo in the TableLogOnInfo then call ApplyLogOnInfo without error. Here is the actual code snippet:
Private Sub ConnectDatabase()
Dim KfxAdvRepTables As Tables = _kfxAdvancedReport.Database.Tables
'*** Iterate through the tables and set the appropriate properties
For Each KfxAdvRepTable As CrystalDecisions.CrystalReports.Engine.Table In KfxAdvRepTables
Dim KfxAdvRepTableLogonInfo As TableLogOnInfo = KfxAdvRepTable.LogOnInfo
KfxAdvRepTableLogonInfo.ConnectionInfo = _CRConnectionInfo
KfxAdvRepTable.ApplyLogOnInfo(KfxAdvRepTableLogonInfo)
Next KfxAdvRepTable
End Sub
We have implemented logging in the source code and have verified the correct username and password are being set in the ConnectionInfo. When the login dialog appears, they enter the same username and password and the report runs okay.
Any help you could provide would be greatly appreciated. Our company is prepared to open a formal, "paid for" case With Crystal Reports if required.