Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Logon problem to Crystal Report

3038034Nov 26 2015 — edited Nov 30 2015

Hi,

i am having some difficulty in getting authenticated for the crystal reports applications.

i am able to query data from my application from oracle database. i cant seem to be able to connect to the database tho thru crystal report

any ideas?

error - oracle.PNG

as soon as the report starts to display, it gives the following:

my code is as follows:

//// Change Credentials Here

        CrystalDecisions.CrystalReports.Engine.Database crDb;

        CrystalDecisions.CrystalReports.Engine.Tables crTables;

        CrystalDecisions.CrystalReports.Engine.Table crTable;

        TableLogOnInfo crTableLogOnInfo;

        ConnectionInfo crConnInfo;

        crDb = objRpt.Database;

        crTables = crDb.Tables;

        crConnInfo = new CrystalDecisions.Shared.ConnectionInfo();

        crConnInfo.ServerName = "ORCL";

        crConnInfo.DatabaseName = "192.1.50.X";

        crConnInfo.UserID = "XXXX";

        crConnInfo.Password = "XXXX";

        for (int i = 0; i \< crTables.Count; i++)

        {

                 crTable = crTables\[i\];

        crTableLogOnInfo = crTable.LogOnInfo;

        crTableLogOnInfo.ConnectionInfo = crConnInfo;

        crTable.ApplyLogOnInfo(crTableLogOnInfo);

        }
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2015
Added on Nov 26 2015
4 comments
1,759 views