Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Crystal Reports login dialog with Oracle

$
0
0

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.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>