Logon fail when creating Connection in Crystal Reports SP3

Greetings,
I am working on an issue where we have installed the SAP GUI 7.10, Crystal reports 2008 SP3, and SAP IK FP 3.1.
We are testing the access to ECC.  We have setup the server in the GUI and can successfully logon to the server in the GUI.  We open Crystal Reports, select File -> New -> Standard Report, scroll down to SAP Table, Cluster, or Function, and the SAP System Logon window pops up.
Select the ECC system, click Next, and input the logon info for the system.  Click Next and do not check the box for generating a RFC trace file, then click finish.
This results in a new window popping up.  The title is Crystal Reports, and the contents of the window are as follows...
Logon failed.
Details: <bunch of Chinese characters>.<more Chinese characters>
We are using the language setting of EN on the SAP server, and in the GUI configuration.  Not sure why we are getting Chinese (we have verified it as Chinese with a person here who can read some Chinese.  he says that the first part is "something about server not valid")
We asked a user who does have a working install using CR 2K8 SP2 and SAP IK SP2 to try the login and he had the same results on this system.
We can use the same SAP account to login to InfoView without an issue.
Any suggestions?

i had the same problem.
it has something to do with the sap gui logon settings.
1. go to your SAP logon ECC-properties (start sap-logon; right-click on your ecc connection)
2. go to the Codepage-Tab
3. set Language to default (standard)
then it should work.
br
thomas

Similar Messages

  • Database Connector Error when I connect SAP Crystal Report to dbase

    When I connect SAP Crystal Report to dbase the error is "Database Connector Error", only when exist a field the type memo. I need to used this type of field, somebody that known how can I resolve this problem or some idea?
    Thanks a lot for your help.

    Hi,
    there are sevaral SAP Notes for your problem. Can you specify the databaseof the source?
    i.e. MS SQL Server -> Note 1212769
          dbase -> Note 1209347
    regards
    -Phil

  • How To Enable Group Layout When Creating Chart in Crystal Reports XI

    Hi
    I Created a chart, and i placed the same on Report Header, when i want to change the layout Option As Group, it is disabled, how to enable the Group Layout Option.

    Hello
    You should have your group already created and your summary. you place your graph outside the group (RH or RF)
    Luc

  • Error when create connection in Xcelcius 2008 SP3 to BW EHP 1 SPS 6

    Dear All,
    Last week there is no problem in this connection, buat since today this error happen.
    We found error when trying to connect Xcelcius and and BW,below the error:
    com.sap.ip.bi.bics.remote.impl.rmi.ApplicationCreationException: Could not to create the application. This is probably due to a misconfigured Abap/Java connection.
    at com.sap.ip.bi.bics.remote.impl.rmi.cc.AbstractConnectionContext.getApplication(AbstractConnectionContext.java:195)
    at com.sap.ip.bi.bics.remote.impl.rmi.cc.AbstractConnectionContext.createBicsRemoteMessageProducer(AbstractConnectionContext.java:387)
    at com.sap.ip.bi.bics.remote.impl.rmi.cc.AbstractConnectionContext.getMessageProducer(AbstractConnectionContext.java:209)
    at com.sap.ip.bi.bics.remote.BicsRemoteImpl.getDesignTimeInfo(BicsRemoteImpl.java:156)
    at com.sap.ip.bi.bics.remote.BicsRemoteBean.getDesignTimeInfo(BicsRemoteBean.java:109)
    at com.sap.ip.bi.bics.remote.BicsRemoteObjectImpl0_0.getDesignTimeInfo(BicsRemoteObjectImpl0_0.java:379)
    at com.sap.ip.bi.bics.remote.BicsRemote_Stub.getDesignTimeInfo(BicsRemote_Stub.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:331)
    at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
    at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
    at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
    at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
    at SoapServlet.doPost(SoapServlet.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.ip.bi.base.service.connection.ConnectionException: No connection possible to BI master system BD1CLNT500
    at com.sap.ip.bi.base.portal.connection.impl.GenericConnectionPool.getMasterSystemConnection(GenericConnectionPool.java:71)
    at com.sap.ip.bi.base.application.impl.Application.createService(Application.java:568)
    at com.sap.ip.bi.base.application.impl.Application.getMasterSystemService(Application.java:1027)
    at com.sap.ip.bi.base.application.impl.Application.getProperty(Application.java:829)
    at com.sap.ip.bi.base.application.impl.Application.startApplicationStep(Application.java:346)
    at com.sap.ip.bi.base.application.impl.Application.initialization(Application.java:326)
    at com.sap.ip.bi.base.application.ApplicationFactory.createApplication(ApplicationFactory.java:63)
    at com.sap.ip.bi.bics.remote.impl.rmi.cc.ConnectionContextStateless.createApplication(ConnectionContextStateless.java:72)
    at com.sap.ip.bi.bics.remote.impl.rmi.cc.AbstractConnectionContext.getApplication(AbstractConnectionContext.java:172)
    ... 31 more
    Caused by: com.sap.ip.bi.base.service.connection.ConnectionException: No connection exists for system "BD1CLNT500"
    at com.sap.ip.bi.base.portal.connection.PortalConnectionPool.getConnection(PortalConnectionPool.java:206)
    at com.sap.ip.bi.base.portal.connection.impl.GenericConnectionPool.getMasterSystemConnection(GenericConnectionPool.java:67)
    ... 39 more
    Caused by: com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'user' missing
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:518)
    at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1086)
    at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)
    at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.connectWithJCO(SAPCFConnectorManagedConnection.java:429)
    at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.establishInitialConnection(SAPCFConnectorManagedConnection.java:204)
    at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.init(SAPCFConnectorManagedConnection.java:183)
    at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnectionFactory.createManagedConnection(SAPCFConnectorManagedConnectionFactory.java:129)
    at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:338)
    at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:262)
    at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorConnectionFactory.getConnectionEx(SAPCFConnectorConnectionFactory.java:156)
    at com.sap.portal.ivs.internalconnector.ConnectionProvider.getConnection(ConnectionProvider.java:295)
    at com.sap.portal.ivs.internalconnector.ConnectionProvider.getConnection(ConnectionProvider.java:256)
    at com.sapportals.portal.ivs.cg.ConnectorService.getConnection(ConnectorService.java:446)
    at com.sapportals.portal.ivs.cg.ConnectorService.getConnection(ConnectorService.java:84)
    at com.sap.ip.bi.base.portal.connection.PortalConnectionPool.getConnection(PortalConnectionPool.java:170)
    Please your help and solution on this,
    Thanks and Best Regards,
    Widi

    Hi Mustafa,
    Yes, we are able to resolve the issue.
    This issue happen because we change the configuration in
    System Admin -> System Configuration -> Portal Content -> Systemlandscape -> (your system landscape)
    - Display = Object
    - Property Category = User Management
    - Authentication Ticket Type = SAP Assertion  TIcket
    - Logon Method = SAPLOGONTICKET
    - User Mapping type = admin,user
    After we change this configuration, our we can connect with our Xcelcius to SAP BW.
    Please kindly check your User Management configuration.
    Regards,
    Widi

  • Database Logon Failed which created by Crystal Report 2008

    this time i meet the famous error again which is database logon failed.
    i created a crystal report 2008 starting from blank report, then connect with odbc
    i use 2008 method
    objRpt.SetDatabaseLogon(db_username, db_password, odbc_name, database_name);
    2008 method will get database logon failed even set database location and verify database again
    then i use 8.5 method and try again for 2008 report. it said field name is unknown for one of formula
    then i drag field again for formula and set database location and verify database again
    it said the same error.
    then i uninstall 8.5 crytal report software in window 7 deployment machine, and do above again, it said the same error
    //'Create a new Stored Procedure Table to replace the reports current table.
            CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
            //'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
            PropertyBag boMainPropertyBag = new PropertyBag();
            //'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
            //'In the main property bag (boMainPropertyBag)
            PropertyBag boInnerPropertyBag = new PropertyBag();
            //'Set the attributes for the boInnerPropertyBag
            boInnerPropertyBag.Add("Connect Timeout", "15");
            //boInnerPropertyBag.Add("Data Source", "MyDataSource");
            boInnerPropertyBag.Add("Data Source", "10.1.1.191");
            boInnerPropertyBag.Add("DataTypeCompatibility", "0");
            boInnerPropertyBag.Add("General Timeout", "0");
            //boInnerPropertyBag.Add("Initial Catalog", "MyCatalog");
            boInnerPropertyBag.Add("Initial Catalog", database_name);
            boInnerPropertyBag.Add("Integrated Security", "False");
            boInnerPropertyBag.Add("Locale Identifier", "1033");
            boInnerPropertyBag.Add("MARS Connection", "0");
            //boInnerPropertyBag.Add("OLE DB Services", "-5");
            //boInnerPropertyBag.Add("ODBC", "-5");
            boInnerPropertyBag.Add("ODBC", "Cheque");
            boInnerPropertyBag.Add("Provider", "SQLNCLI");
            boInnerPropertyBag.Add("Tag with column collation when possible", "0");
            boInnerPropertyBag.Add("Trust Server Certificate", "0");
            boInnerPropertyBag.Add("Use Encryption for Data", "0");
            //'Set the attributes for the boMainPropertyBag
            boMainPropertyBag.Add("Database DLL", "crdb_ado.dll");
            //boMainPropertyBag.Add("Database DLL", "p2sodbc.dll");
            //boMainPropertyBag.Add("QE_DatabaseName", "VEPILOT");
            boMainPropertyBag.Add("QE_DatabaseName", database_name);
            //boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
            boMainPropertyBag.Add("QE_DatabaseType", "ODBC");
            //'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
            boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
            boMainPropertyBag.Add("QE_ServerDescription", "MyServer");
            boMainPropertyBag.Add("QE_SQLDB", "True");
            boMainPropertyBag.Add("SSO Enabled", "False");
            //'Create a new ConnectionInfo object
            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
            //'Pass the database properties to a connection info object
            boConnectionInfo.Attributes = boMainPropertyBag;
            //'Set the connection kind
            boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
            //'*EDIT* Set the User Name and Password if required.
            boConnectionInfo.UserName = db_username;
            boConnectionInfo.Password = db_password;
            //'Pass the connection information to the table
            boTable.ConnectionInfo = boConnectionInfo;
    CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables = objRpt.ReportClientDocument.DatabaseController.Database.Tables;
                CrystalDecisions.CrystalReports.Engine.Tables tables = objRpt.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    if (!string.IsNullOrEmpty(table.Name))
                        //boTable.Name = table.Name;
                        //boTable.QualifiedName = database_name + ".dbo." + table.Name;
                        //boTable.Alias = table.Name;
                        boTable.Name = "sp_ChequeIssueDetRpt";
                        boTable.QualifiedName = database_name + ".dbo.sp_ChequeIssueDetRpt";
                        boTable.Alias = "sp_ChequeIssueDetRpt";
                        objRpt.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
                objRpt.VerifyDatabase();
    http://sourceforge.net/projects/aspchequesprint/files/ChequeIssueDet.rpt/download

    No subreport, only a stored procedure with final two lines are
    print @m_sql
    exec (@m_sql)
    After use generated code in the link above
    Error at boReportDocument.VerifyDatabase();
    Inner Exception : no error
    Message "Logon failed"
    ErrorID : CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
    HelpLink : null
    stacktrace :  CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()\r\n   at viewReport.Page_Load(Object sender, EventArgs e) 於 d:
    Data
    My Documents
    Visual Studio 2008
    WebSites
    Cheques
    viewReport.aspx.cs: row 1302\r\n   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n   at System.Web.UI.Control.OnLoad(EventArgs e)\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    TargetSite : {Void VerifyDatabase()}
    string reportPath = report_path + "ChequeIssueDet.rpt";
                boReportDocument = new ReportDocument();
                //**EDIT** Change the path and report name to the report you want to change.
                boReportDocument.Load(reportPath, OpenReportMethod.OpenReportByTempCopy);
                //Create a new Stored Procedure Table to replace the reports current table.
                CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable =
                new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
                //boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
                PropertyBag boMainPropertyBag = new PropertyBag();
                //boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
                //In the main property bag (boMainPropertyBag)
                PropertyBag boInnerPropertyBag = new PropertyBag();
                //Set the attributes for the boInnerPropertyBag
                boInnerPropertyBag.Add("Database", database_name);
                boInnerPropertyBag.Add("DSN", "Cheque");
                boInnerPropertyBag.Add("UseDSNProperties", "False");
                //Set the attributes for the boMainPropertyBag
                boMainPropertyBag.Add("Database DLL", "crdb_odbc.dll");
                boMainPropertyBag.Add("QE_DatabaseName", database_name);
                boMainPropertyBag.Add("QE_DatabaseType", "ODBC (RDO)");
                //Add the QE_LogonProperties we set in the boInnerPropertyBag Object
                boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
                boMainPropertyBag.Add("QE_ServerDescription", "Cheque");
                boMainPropertyBag.Add("QE_SQLDB", "True");
                boMainPropertyBag.Add("SSO Enabled", "False");
                //Create a new ConnectionInfo object
                CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
                new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
                //Pass the database properties to a connection info object
                boConnectionInfo.Attributes = boMainPropertyBag;
                //Set the connection kind
                boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
                //**EDIT** Set the User Name and Password if required.
                boConnectionInfo.UserName = db_username;
                boConnectionInfo.Password = db_password;
                //Pass the connection information to the table
                boTable.ConnectionInfo = boConnectionInfo;
                //Get the Database Tables Collection for your report
                CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
                boTables = boReportDocument.ReportClientDocument.DatabaseController.Database.Tables;
                //For each table in the report:
                // - Set the Table Name properties.
                // - Set the table location in the report to use the new modified table
                boTable.Name = "sp_ChequeIssueDetRpt;1";
                boTable.QualifiedName = database_name+".dbo.sp_ChequeIssueDetRpt;1";
                boTable.Alias = "sp_ChequeIssueDetRpt;1";
                boReportDocument.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
                //Verify the database after adding substituting the new table.
                //To ensure that the table updates properly when adding Command tables or Stored Procedures.
                boReportDocument.VerifyDatabase();
                //**EDIT** Set the value for the Stored Procedure parameters.
                string m_curUser = "";
                int spid = Convert.ToInt32(Request.Cookies["login_cookie"]["spid"]);
                queryString = "select * from v_All_Session where SPID=" + spid.ToString();
                //string _connectionString = ConfigurationManager.ConnectionStrings["ChequeConnectionString"].ConnectionString;
                using (SqlConnection connection = new SqlConnection(_connectionString))
                    SqlCommand command = connection.CreateCommand();
                    command.CommandText = queryString;
                    connection.Open();
                    using (SqlDataReader datareader = command.ExecuteReader())
                        if (datareader.HasRows == true)
                            while (datareader.Read())
                                if (datareader["UserID"] != System.DBNull.Value)
                                    m_curUser = datareader["UserID"].ToString();
                        datareader.Close();
                    connection.Close();
                boReportDocument.SetParameterValue("@UserID", m_curUser);
                if (string.IsNullOrEmpty(Session["fm_CoCode"].ToString()))
                    boReportDocument.SetParameterValue("@fm_CoCode", Session["fm_CoCode"].ToString());
                if (string.IsNullOrEmpty(Session["to_CoCode"].ToString()))
                    boReportDocument.SetParameterValue("@to_CoCode", Session["to_CoCode"].ToString());
                if (string.IsNullOrEmpty(Session["fm_BankACNo"].ToString()))
                    boReportDocument.SetParameterValue("@fm_BankACNo", Session["fm_BankACNo"].ToString());
                if (string.IsNullOrEmpty(Session["to_BankACNo"].ToString()))
                    boReportDocument.SetParameterValue("@to_BankACNo", Session["to_BankACNo"].ToString());
                if (string.IsNullOrEmpty(Session["fm_BatchNo"].ToString()))
                    boReportDocument.SetParameterValue("@fm_BatchNo", Session["fm_BatchNo"].ToString());
                if (string.IsNullOrEmpty(Session["to_BatchNo"].ToString()))
                    boReportDocument.SetParameterValue("@to_BatchNo", Session["to_BatchNo"].ToString());
    Edited by: Mathew_666 on Jul 19, 2011 4:27 AM
    Edited by: Mathew_666 on Jul 19, 2011 4:28 AM

  • Database logon failed when opening report with parameter values in CrystalReportViewer

    Hi,
    I designed 2 crystal reports: report A contains parameter fields and report B did not contain any parameter
    I can open both reports in development site using CrystalReportViewer control. When I open the reports in testing site,
    I can open report B but can't open report A. It display error message "Database logon failed". When I set EnableDatabaseLogonPrompt
    to true and try to open the report A again, it shows database connection data which was created on report.
    In addition, it is strange that it displays error "Database logon failed" when I click an item in group tree panel of the report B. This indicates that it can load data from database
    in testing site but it connect to development database when clicking items in group tree panel
    All reports connect to database using Windows Authenication. It use dynamic database connection at runtime
    How to ensure the report always connect database using login data dynamically at runtime?
    Below is my code about database connection:
    string strServerName = null;
    string strDatabaseName = null;
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strFilePath);
    ConnectionInfo connInfo = new ConnectionInfo();
    TableLogOnInfo logonInfo;
    for (int i = 0; i < rptDoc.Database.Tables.Count; i++)
    logonInfo = rptDoc.Database.Tables[i].LogOnInfo;
    ReportHelper.GetReportConnection(ref strServerName, ref strDatabaseName, strSystemType);
    logonInfo.ConnectionInfo.ServerName = strServerName; 
    logonInfo.ConnectionInfo.DatabaseName = strDatabaseName;
    logonInfo.ConnectionInfo.IntegratedSecurity = true;
    rptDoc.Database.Tables[i].ApplyLogOnInfo(logonInfo);
    rptDoc.Database.Tables[i].Location = rptDoc.Database.Tables[i].Location.Substring(0, rptDoc.Database.Tables[i].Location.Length - 2);
    crvViewer.ReportSource = rptDoc;
    crvViewer.DataBind();
    Development environment:
    - SAP Crystal Reports 2013 Support Pack 1
    - Visual Studio Professional 2012
    - .NET Framework 3.5
    - DDL
    CrystalDecisions.Shared (v 13.0.8.1216)
    CrystalDecisions.Web (v 13.0.8.1216)
    CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)
    Database connection in crystal report:
    - Database Type: OLEDB (ADO)
    - Provider: SQLOLEDB
    - Integrated Security: True
    Thanks and Regards,
    Tony

    Hi Tonylck
    Try  to pass login info to crystal report dynamically as follows:
    using System;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace WindowsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    ReportDocument cryRpt = new ReportDocument();
    TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
    TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    Tables CrTables ;
    cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
    crConnectionInfo.ServerName = "YOUR SERVER NAME";
    crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
    crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
    crConnectionInfo.Password = "YOUR DATABASE PASSWORD";
    CrTables = cryRpt.Database.Tables ;
    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
    crtableLogoninfo = CrTable.LogOnInfo;
    crtableLogoninfo.ConnectionInfo = crConnectionInfo;
    CrTable.ApplyLogOnInfo(crtableLogoninfo);
    crystalReportViewer1.ReportSource = cryRpt;
    crystalReportViewer1.Refresh();
    Ref
    http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
    Mark as answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • How do we create a jndi connection in crystal reports XI

    how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • Has anyone Connected a Crystal Report directly to a Microsoft Project file (MPP)?

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Iu2019m aware I can save Microsoft Project Files (MPP) to an Access Database, Excel document etc. and there are ways to connect to a Microsoft Project Server.
    I wanted to know if anyone has managed to connect directly to one though. Currently we use MPPs to report project status and other deliverables, and itu2019s been an annoyance to have to save the project file then export the data over into a new excel document when ever we have changes (since not all users have project or need all the data in the file).
    Preferably, a user should be able to save that project file and anyone that has the Crystal report should be able to run the report against the MPP file. In addition to this, it would be extremely helpful in getting a formalized and nicely formatted report when running reports against rational and MMP files, thus giving an alternative from SODA reports in Microsoft word, which doesnu2019t always work well.
    Thanks!

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Ok, I answered my own question on the connection issue, but I'm having issues with the predefined fields that enter into the report. The Database Expert shows the correct table names, but when I select them and look at the fields, they are all showing fields that are part of the "Project" table. when I use "Add Command" and use SQL to do a "Select * From TableName" ,where TableName is the name of the respective table, I get the data I'm looking for. Has anyone else run into this error? Is the error on Crystal Reports side or the Data provider's OLE DB driver? Has anyone with a fully patched system encountered the same errors?
    Current SetupCrystal Version: 11.0.0.1282CR Professional; Product Type:FullOLE DB Driver: Microsoft Project 10.0 OLE DB Provider
    I have pasted my findings below, hopefully other people won't have the same issues I did trying to find this information. if anyone else wants to test and see if they get the same issues I did it would be greatly appreciated.
    Connecting a Crystal Report XI to a Microsoft Project File (MPP)
    Prerequisites (as I know them)
    -          Have an installation of Crystal Reports on the machine (a given)
    -          Have Microsoft Project 2000/2003 installed OR  the Microsoft Project OLE DB provider which is installed with Microsoft Project (NOTE: Microsoft 2007 supposedly no longer supports OLE DB and requires an OLAP cube be made or a SOAP connection be used, which I donu2019t deal with personally)
    Creating the connection
    Start Crystal Reports
    Click u201CBlank Reportu201D on the start page
    in the u201CDatabase Expertu201D window, under u201CAvailable Data Sourcesu201D, Select u201C+u201D next to u201CCreate New Connectionu201D
    Select the u201C+u201D beside u201COLE DB(ADO)u201D
    If a u201COLE DB (ADO)u201D  window does not come up, double click u201CMake New Connectionu201D 
    In the u201Cprovider:u201D box Select the u201CMicrosoft Project 10.0 OLE DB Provideru201D
    The name may be different depending on the version of project you install and the patch you have on the machine
    Select u201CNext >u201D
    Under u201CDatabase:u201D copy/paste in the path and project file name
    I donu2019t believe the other fields u201CData Source:u201D, u201CUser ID:u201D, or u201CPasswordu201D need to be filled out, and in fact, I got an error when entering in data into them
    Example: u201CC:\Projects\Project Name\Current Schedule.mppu201D
    Select u201CNext >u201D
    In the Advaned information window, verify the project Name is the path of the project.
    I have not found the use of u201CEnterprise Modeu201D (default: 0), u201CAlways Loadu201D (default: 0), u201COLE DB Servicesu201D(default: -5), or u201CEnterprise RUID Listu201D (default: blank), removing them or changing them did cause errors though.
    Click u201CFinishu201D
    Adding in Tables and extracting data
    You now have a connection to the project File you listed. There is an issue Iu2019ve found though that all the tables you see listed are filling their fields in from the u201CProjectu201D Table, rather then their respective tables (Example: u201CAssignmentsu201D is pointing at u201CProjectu201D rather then the obvious connection u201CAssignmentsu201D). You can, however, use the u201CAdd Commandu201D and select the table you want with just a little SQL code:
    Select *
    From Assignments
    After creating the command, highlight it and hit u201CF2u201D. You should be able to edit the name and change it from u201CCommandu201D to something more meaningful. At the current time Iu2019m unsure if the issue with the default tables all pointing toward the project table is an error on the provider side or Crystal Reports end, and if one of the new patches will fix it. I will update this document accordingly when I have more information and do more testing. I will note however, there is no way to change which table these preset fields point to.
    Thank you for your time.

  • Password is lost when I save the Crystal Report

    We use Crystal Reports v. 11.5.3.417, and our users access the crystal Reports using InfoView (Web Portal)
    We store the username and password inside the different Repor so the end-users of these reports don't have to know our database passwords in order to run the reports. (Oracle DB)
    We have 2 problems with our Crystal Reports
    1) Every time I change and the Save a report, the Password is lost, and I have to remember to go into the "Manage Object" and Process->Database and enter it again. It's really annoying to have to remember this every time we change a report.. Is there an option somewhere to avoid this?
    2) The password and username are occationly failing. When the users (accessing Crystal Reports through the Web Portal / Infoview) get an error message "Incorrect logon parameters..." The funny thing (actually not that funny) is that if I try to open the report like 10-15 times, just by clicking on the Crystal Report in the Infoview, it usually starts to work again. Some times after 5 clickes, and other times after 10-15 clicks. Its just not logical. Also when it starts working in my web-browser, it also start to work on our users browser as well.
    Every week I have to tell a couple of users to try like 10-15 times, but its not that funny to say this to a user.

    Hi   Roy Ingar Hansen,
    If  you think not to provide the password for your End user then we can  do that go into the "Manage Object" and Process->Database  enter the password  and Enable the option in :
    When viewing report:
    Use same database logon as when report is run.
    For the first time you need to enter the logon credentials and enable the option and click on update.
    It wont prompt for the password and it will not show password to your user's.
    If you have problems with Original database logon , then try with Custom database logon and update the option.
    Try with this...
    Regards,
    Naveen.

  • Connecting to crystal report via JDBC

    Hi,
    I am new to Crystal Reports. I want to connect to MSSQL Database using JDBC drivers. I was wondering if there is a way I can use JDBC drivers for connection with Crystal Reports when designing the report ? 
    Thanks
    Sherif

    Hi Sheriff,
    I am not aware of CR 9 as it is out of support. But in CRXIR2 and CR2008 you can simply do it while creating new report. In the wizard you just need to select JDBC(JNDI) option under Create new connection.
    After that just specify the connection url and JDBC class name.
    I would suggest you to upgrade your product to CR2008 as it has excellent new features which would realy help you with the same.
    Regards,
    Nilesh Benke

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • Data Quality - Failed to create connection to MDR.

    Hi All,
    I have installed Data Quality 11.7.2 on windows 2003 server using SQL 2005 (Both SQL 2005 server and Data Quality are in the same server) , The install was successful. But when I try to Open 'Data Quality Project Architect' it throws an error
    Failed to create connection to MDR.
    Driver error messgage = qodbc_mssql:
    Unable to connect, Database error message =] [microsoft][odbc sql server driver]
    [ tcp/ip sockets] sql server does not exist or access denied
    I checked the ODBC connection and tested it successfully too.
    I am not able to pass through the 'Meta Data Repository Connection' as its failing in 'Setup SQL connection option'
    Any help is appreciated !!!
    Thanks
    Ranjit Krishnan

    Hi Paul,
    Thanks for you reply, OBDC connection was created under System DSN, also tired the users DSN option too, but did not work.
    Recreated the ODBC connection many times still no luck.
    The 'Project Architect' client and the MDR (SQL 2005 Server) are on the same machine.
    Thanks
    Ranjit Krishnan

  • Error when trying to deploy crystal reports to a web site

    I'm using VS 2008.  When I add a Crystal Report page to my application I get the following error.
    Can anyone help be resolve this problem?
    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    Line 110:               <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
    Line 111:               <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    Line 112:               <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
    Line 113:          <httpModules>
    Line 114:               <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Source File: C:\InetPub\Websites\church-site_org\web.config    Line: 112
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Hi,
    I also encountered problem: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    I try to install the CRRedist2008_x64.msi in our web server. And its ok. But my problem now is the report i created in VS 2003. The error now is:
    Parser Error Message: File or assembly name CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found.
    Source Error:
    Line 22:           debugging ASP.NET files.
    Line 23:     -->
    Line 24:     <compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
    Line 25:
    Line 26:     <!--  CUSTOM ERROR MESSAGES
    Source File: E:\INETPUB\WWWROOT\DTS\web.config    Line: 24
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.CrystalReports.Engine' could not be loaded.
    === Pre-bind state information ===
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///E:/INETPUB/WWWROOT/DTS
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    Please need your help.
    thanks

  • How to create user editable Crystal Report with dynamic dataset

    What I would like to achieve:
    A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
    What I do:
    CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    CrReport.Load(TemplateFilename)
    Dim Results As DataTable
    DataTable is filled from a database
    CrReport.SetDataSource(mResults)
    CrReport.SaveAs(NewReportPath, True)
    The NewReportPath is opened in the default program.
    What are the problems
    The report is open in preview mode (not in design).
    When the field is added to the report the designer asks for XML datasource on preview.

    The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

  • Connection between Crystal Report and SAP ECC

    Hi. can you help me please.
    I'm testing the connection between Crystal Report and SAP ECC. I tried using the tables,
    but by making the links between foreign keys does not bring data. The other way I tried was using an ABAP function module,
    but using this way, Crystal will only works like a Presentation Layer because all the work was did it in ABAP;
    besides that shows the limitation that I can not pass as input a table.
    what is the best practice for reporting on SAP ECC using Crystal Report?
    Thanks.

    Hi,
    Crystal Reports is able to leverage tables, ABAP functions, SAP query and InfoSets.
    what is the issue when using the tables ?
    ingo

Maybe you are looking for

  • How to save a report in server

    ...so it can be accessed by all. In BEX, I create a query, save it to a role and everybody can access the query. How does this work in BPC? What are the keywords for this? Thanks in advance! Rgds, Christian

  • Reg file adapter with Synchronous

    Hi , i have sce like send IDOCs to File ,get back the response  to PI with CSV formate.it is possible to do without BPM. Thanks

  • Problem with IDOCs

    Hi all, I am trying to send MATMAS IDOCs to Siebel server using plain HTTP Reciever Adapter.I am able to see success messages in SXMB_MONI for Some IDOCs I mean where the IDOC have minimum segments which does not contains mandatory data. In some IDOC

  • Reg: dbms_session package

    Hai, Did anybody encounter this kind of problem? I have a secured role assigned to the users that will be enforced using dbms_session.set_role package. Till date it is working fine, but when the database profile had started me giving the message - Pa

  • OCI Mapping field/table

    Hi Gurus, This is regarding an issue that I am facing with some materials in punchout catalog used with SRM5.0 For some particular items, I get an error "Incomplete items in catalog, only complete items were transferred" on transferring the data from