Crystal Report Config

Hi,
How to configure Crystal report using MySql?
I added mysqlconnector.jar in CRConfig.xml file, Is there any jar to include for mySql?
Pls Help me those who knows...

Hello, Mervin;
Since you are using ADO.NET dataset, is it possible to get all of the fields you need in one SQL Query outside of Crystal Reports?
If that is possible, you can use that dataset to create an XML or XSD file to use as the structure for your report.
VB
'Using the full path to the .xml file, include the schema
dataSet.WriteXml("C:\temp\test.xml", XmlWriteMode.WriteSchema)
or
dataSet.WriteXmlSchema("c:\temp\testXML.xsd")
Now create a new report with the ADO.NET(XML) connection and point to either the XML or XSD you created. XML is useful because you can view data in the report designer for final formatting of the report.
Now there is only one datasource and no linking is required in Crystal Reports. That should resolve the one to many issue.
Another useful tool is to group on the many and place all the fields normally in the detail section into that group header. Suppress the Detail and Group footer sections. The Group Header will now look like a Detail section and each distinct value will only appear once. You can group on one field or a combination (using a formula field) to get the results you need. Test this to be sure you do not miss anything you want to see.
Elaine

Similar Messages

  • Changing the Crystal Report dependency from 10.2 to 11.5 using config file

    Hi,
    We have an windows application in .net 2.0, which refers to Crystal Report 10.2 version. Now the dependency was being upgraded to 11.5. But we do not have the exact source code for the executable to change the dependency from 10.2 to 11.5.
    I have installed the CR 11.5 to the testing machine and tried to open the appilcation. it failed saying CR 10.2 dlls were missing
    Then  I changed the .net config files to change the dependency assembly as follows
    <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral" />
             <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
          </assemblyBinding>
      </runtime>
    Now the application launched with out any issues. I thought the problem was sorted out.
    But when I tried to generate the report, there comes the problem
    During the report generation, I am getting the following error
    Crystal Reports
    An error has occurred while attempting to load the Crystal Reports runtime.
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
    OK  
    I do not want to install the 10.2 redistributable in teh machine also do not want to re-compile the sources changing the dependency
    Is there any way to achieve this ?
    Any help is much appreciated.
    Thanks
    Edited by: Balaji Narasimhan on Aug 3, 2009 5:28 PM

    No way that I know of. I believe once you change the dependency, you will have to recompile the project. Installing CR 10.2, may get this to work, but the app will most likely use the 10.2 references. Let's see if anyone else has any ideas.
    Ludek

  • For PrintControl.cab in crystal reports 2008 How can i configure Web.config in VS2005

    hi,  Now i am using crystal report 2008 evalution  with VS2005. In my ASP.net Application Viewiing reports using Crystalreportviewer PrintMode=ActiveX (not in PDF).If i am trying to print using Printcontrol.cab..in the client machine the activeX control is not installing in client. Its works good with crystal report bundle with 2005. with crystal report 2008 its not working. I want to know how i configuer web.config and others. Help me Pls.
    Instead of these code
    <configSections>
      <sectionGroup name="businessObjects">
        <sectionGroup name="crystalReports">
          <section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
        </sectionGroup>
      </sectionGroup>
    </configSections>
    <businessObjects>
      <crystalReports>
        <printControl>
          <add key="url" value="http://myserver/PrintControl.cab" />
        </printControl>
      </crystalReports>
    </businessObjects>
    new version=??? Publictokenkey=?????
    Thank u in advance

    The workstation machine needs to be logged in as someone with administrative access.

  • Matching config file Crystal Reports 8

    Post Author: BBUSA
    CA Forum: General
    I am a novice user with Crystal Reports 8. I have been using it to modify existing reports. Now I would like to write new reports. When I try to link the new report to my application software it does not show up as an option that I can choose. The reason for this is that there is a little config file that needs to be written for each report. All the reports that I have from before have a matching config file. I can open the file in notepad but when I save it, it is no longer a config format, it becomes a text file. So my question is how do I write the correct config file from scratch. Thank you all for you cyber help.

    Post Author: SKodidine
    CA Forum: General
    Open notepad and type in your commands and then do a SAVE AS.  For SAVE AS TYPE choose ALL FILES then for your file name type test.ini or test.cfg or whatever the extension is for the config files for the other reports.  That should work.

  • Crystal Report Many to One Query Config error when using DataSet.ReadXML me

    When I build a dataset with this method numerous relations are automatically created. I then map these fields onto crystal reports with ADO.net data connection. However when I run the report the following error occurs:
    CrystalDecisions.CrystalReports.Engine.InternalException: Cannot determine the queries necessary to get data for this report.Details:
    This query cannot be performed. The link order requires many to one query configuration, which is not supported. Please rearrange the links.
    If I remove the links (relations) i get duplicate data on the report. Is there any way to resolve this or a patch for the error?

    Hello, Mervin;
    Since you are using ADO.NET dataset, is it possible to get all of the fields you need in one SQL Query outside of Crystal Reports?
    If that is possible, you can use that dataset to create an XML or XSD file to use as the structure for your report.
    VB
    'Using the full path to the .xml file, include the schema
    dataSet.WriteXml("C:\temp\test.xml", XmlWriteMode.WriteSchema)
    or
    dataSet.WriteXmlSchema("c:\temp\testXML.xsd")
    Now create a new report with the ADO.NET(XML) connection and point to either the XML or XSD you created. XML is useful because you can view data in the report designer for final formatting of the report.
    Now there is only one datasource and no linking is required in Crystal Reports. That should resolve the one to many issue.
    Another useful tool is to group on the many and place all the fields normally in the detail section into that group header. Suppress the Detail and Group footer sections. The Group Header will now look like a Detail section and each distinct value will only appear once. You can group on one field or a combination (using a formula field) to get the results you need. Test this to be sure you do not miss anything you want to see.
    Elaine

  • How to config Gmail SMTP server for Crystal Report servers

    Hi Experts,
    My customer is using Gmail. They need to send out email from Gmail account via Crystal Reports Server to do some reports bursting.
    I tried many ways to setup in both CrystalReportJobServer and DestinationJobServer, but just got the following error message.
    [AccountsID (8caa73d5-fd2d-469d-8ef2-4d8bd277dc20)]. login error. [[CrystalEnterprise.Smtp] ([1]/[1])]: [SMTP Server does not support authentication. Return code: [SMTP 502 - Command not implemented.].] (FBE60013)
    User name and password are correct. It seems it just cannot get authentication.
    Anyone can help? Thanks in advance.
    Regards,
    Christina

    Hello,
    Sebastian is right. BO doesn't support SSL for email.
    However, there is a workaround by using a program sTunnel which redirects a default connection to a SSL connection.
    Have a look at the note 1611420 which explains on how to do it.
    (https://bosap-support.wdf.sap.corp/sap/support/notes/1611420)
    This will not be supported by BO of course but feel free to test it
    Regards,
    Philippe

  • Crystal report Error for CRVS2010 sp2 using Push Method

    I am trying to pass a dataset to a crystal report viewer using SetDatabaseSource.
    I have defined in Crystal to used an ADO .Net Database XML Schema.
    I pass a Dataset to the Report By using SetDatbaseSourece and set the ReportSource for the CrystalViewer but I get the error that crdb_adoplus.dll does not exists.
    Note that Crystal is looking for crdb_adoplus.dll under subdirectory dotnet1.  It resides under win32_x86.
    Is this a Crystal Report Problem ?
    Is their any docuentation that show how to program for ADO xml dataset using crvs2010 ?
    The Error Reads
    System.IO.FileNotFoundException was unhandled
      Message=Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
      Source=mscorlib
      FileName=file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
      FusionLog==== Pre-bind state information ===
    LOG: User = WKST04\GARYB
    LOG: Where-ref bind. Location = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
    LOG: Appbase = file:///D:/S_and_G/LMS_DotNet/LMS_Solution/LMS/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in LoadFrom load context.
    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
    LOG: Using application configuration file: D:\S_and_G\LMS_DotNet\LMS_Solution\LMS\bin\Debug\LMS.vshost.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win32_x86/dotnet1/crdb_adoplus.dll.
      StackTrace:
           at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
           at System.Reflection.Assembly.LoadFrom(String assemblyFile)
           at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)
      InnerException:

    Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel
    Crystal Reports for .NET Framework 4.0 (CRforVS_13_0_2)
    project WPF net 4.0
    crReport = new Reports.Buh.Cma.cr_balances_cma_move();
    using (DataTable tbl = new DataTable())
       using (SqlConnection cn = new SqlConnection(ConnectToDataBase.GetSqlConnectionString()))
             using (SqlCommand cmd = cn.CreateCommand())
                    cmd.CommandText = "proc_name";
                    cmd.CommandType = CommandType.StoredProcedure;
                    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                            cn.Open();
                            da.Fill(tbl);
      crReport.SetDataSource(tbl);
      crReport.SetParameterValue(4, param["report_name"]);
      myDateTime.GetServerDate();
      crReport.SummaryInfo.ReportAuthor = App.GetPrintInfo();
      e.Result = crReport;
    erorr_message - Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. Не удается найти указанный файл.
    help plz

  • Crystal Report Image Problem

    On launching the Crystal Report we are getting the error "Failed to get the specific page." this is shown above the Crystal report viewer.  In the bottom of the viewer "Error:Programming Error" is displayed.  The same report is working fine when the image is removed in the rpt file. 
    Opertaing System : Windows Server 2008 Standard with Service pack1 (64 bit server).
                                    IIS is running in 32 bit
    Crystal Report Version : Crystal Report XI.  (It is not release 2)
    It is a web based application coded in C# for launching the report.
    Steps that has been verified are
    1. Modifying the App pool from integrated to clasic
    2. In the web.config http handlers has been included (under classic mode)
    3. In the integrated mode i tried with <handlers> entries in System.Webserver that too got failed.
    <handlers>
         <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandlerPage, CrystalDecisions.Web, Version=<version>, Culture=neutral, PublicKeyToken=<keytoken>" preCondition="integratedMode"/>
    </handlers>
    <validation validateIntegratedModeConfiguration="false"/>
    Is there any hot fix or settings available for this issue.
    Please Note : The same report deliverables are working fine in Crystal Reports XI Release 2 and Windows 2003 server.

    Your best bet is to install the last service pack for XI and use the same level runtime for deployment and give it a shot or just move to XI R2.
    XI hasnt been supported for quite a while and was never tested or supported on Win2008 or 64 bit servers as far as I know.
    I didnt see anything specific to this that wasnt fixed by a hotfix.
    Are you publishing this as a web service or a regular web app?

  • Crystal Report prompts for username / pwd when deployed to Bus Obj Server

    Hi All,
    I'm relatively new to Crystal Reports development.  My day job is test analyst.  I'm reasonably technically proficient.
    PROBLEM
    I have created a number of Crytsal Reports which have now been deployed to an Enterprise Business Objects Report Server.  The Server is Business Objects Server XI release 2.
    When I run the report in Crystal Reports Desiger 2008 it does not prompt me to enter the database credentials except if I have modified the SQL command or some other report detail.  Most times I run the report, no database username / pwd is required because I already set this up in the datasource config.
    I' connecting to an Oracle database using ODBC (RDO) connection type.  I cannot get the ODBC (RDO) connection type working from my PC using Crystal Reports Designer 2008, because I don't have ODBC configured for my datasource.  Instead, Im using the native Oracle Server driver to connect to my datasource.
    An existing user in the client organisation configured my report to use the ODBC (RDO) conneciton type for me because the Business Objects Server in the client organisation does not (currently) support the native Oracle driver.  Other reports this user has created and deployed using the ODBC conenction type run successfully without prompting user to enter the database connection credentials.
    NOTE:
    This report users an SQL Command (new to Crystal 2008 I beleive?).  The command is reqiured for this report due to the complexity of the underlying SQL query.
    Does anybody know why the report keeps prompting me to enter the database credentials at runtime?  Obviously for security reasons I don't want report users to have to enter the database schema name and password in order to run the report.

    Hi,
    You need to uncheck "Propmt the user for database logon when viewing". You will find this when you deploy the report on the BOE XI R2.
    The deployment step main heading is
    Specify Databse Crendentials.
    Hope this helps,
    Thanks
    -Azhar

  • Crystal Reports xi r2 integrating with vs2005

    Hi,
    I'm having a problem getting these two integrated and working properly with all the functionality that I need.
    I installed vs2005 and then CRXIR2, and now in vs2005 when I have a report open, I have 2 Crystal Report tabs at the top and in each the options are repeated 4 times for each menu item, makes for a very cluttered menu.
    Also, when I an existing report to a vb2005 asp project in the property pages/web config it adds 2 assemblies for each items, one for version 10.2.3600 and one for 11.5.3700. Is there a way that I can eliminate this.
    And lastly, I use ODBC connections to a database and with the 10.2.3600 assemblies it was disconnecting right away and closing the session after the queries, while the new 11.5.3700 ones do not seem to kill the sessions and fills up the connections until I manually go out and clear them up.
    I know thats a lot to deal with, but I'm sure that they are all related.
    Thank you very much for your help.
    James

    Hi James,
    Microsoft released an update for VS.NET 2005 which broke the integration of Crystal XI R2 with .NET 2005 when applied.  Just do an uninstall/reinstall of Crystal XI R2 and that should fix the multiple tab and drop down issue as well as it putting in both 10.2 and 11.5 assemblies.
    You should probably create a new thread for the 2nd problem if it persists after the uninstall/reinstall.
    Jason

  • Report fails to generate on Crystal Reports Server

    Post Author: cmilkosk
    CA Forum: General
    Hello all!
    I have a case open with BO on generating a report from a Crystal Reports Server (CRS).  The report works fine when running in Crystal Reports on my PC, but after I send it to the Crystal Reports Server, it fails with a message like:"Failed to open the connection.
    C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\metrixdb.reportjobserver\~tmp9bc512965895e0.rpt"This error appears to be telling you that it is trying to connect to
    the CRS's reportjobserver process and having a problem, but the service is up according to the Central Config Manager. I tried starting and stopping it, but it didn't make a difference.  This happens for different reports sent to the server.  One common thing that I've noticed is that the reports that connect to the CRS's local SQL Server 2005 database are the ones that are failing.  So, my CRS resides on the same host as the SQL Server 2005 database (which also houses the CRS SQL DB).  Interestingly, reports scheduled that connect to a remote SQL Server 2000 database work fine.  It could be the simplest report that I am running off of the CRS/SQL Server 2005 host, and it still fails every time. Tech support so far hasn't been much of a help. They suggested that I upgrade my Crystal Reports software on my PC to R2, but that didn't fix the problem.Has anyone had any trouble like this before?  If so, have you found out what the cause was?I'm beginning to wonder if it is related to SQL Server 2005 or potentially just that it is connecting to a local database.Note - my CRS's software version appears to be 11.5.3.438.  I'm not sure if I am running CRS R1 or R2 (how can you tell?).Anyone have any ideas?Thanks,Chris

    Post Author: cmilkosk
    CA Forum: General
    Anyone have any ideas?  Tech Support doesn't seem to be helping much. Chris

  • Crystal Report Viewer integration with Sharepoint 2010

    We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
    display the data in the report. The challenge was to open the report in the web browser.
    The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
    load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
    to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
    So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
    expect a rude shock because it isn't. Here are the steps -
    1. Deploy the WSP to the sharepoint server
    2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
    3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
        <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
    />
          <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
    4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
    SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
    5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
    And we are done. Fingers crossed it should all work.
    Prasad Matkar MCP, MCTS

    Hi Mahesh,
    How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
                    SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
                    SPWeb thisSite = mySite.OpenWeb();
                    // Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
                    EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
                    SPFolder folder = thisSite.GetFolder("Reports");
                    if (folder.Exists)
                        // get collection of Crystal Reports rpt files in the document library
                        SPFileCollection files = folder.Files;
                        // open the rpt file and get the contents
                        SPFile srcfile = files[reportToLaunch];
                        byte[] content = srcfile.OpenBinary();
                        // make a temporary folder
                        DirectoryInfo dir2 = new DirectoryInfo("~/temp");
                        if (!dir2.Exists)
                            dir2.Create();
                        if (File.Exists("~/temp/temp.rpt"))
                            File.Delete("~/temp/temp.rpt");
                        // write the report definition to a temporary file
                        // EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
                        //EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
                        BinaryWriter bw =
                          new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
                        bw.Write(content);
                        bw.Close();
                      //  EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
                        // set up the crystal report
                        ReportDocument reportDoc = new ReportDocument();
                        reportDoc.Load("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
                        ConnectionInfo connection = new ConnectionInfo();
                        connection.ServerName = "SQLServerName";
                        connection.DatabaseName = "SQLDatabase";
                        connection.UserID = "sqluser";
                        connection.Password = "sqlpassword";
                        TableLogOnInfo logon = new TableLogOnInfo();
                        logon.ConnectionInfo = connection;
                        reportDoc.SetParameterValue("@Parameter1", parameter1);
                        reportDoc.SetParameterValue("@Parameter2", parameter2);                                               
                        EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
                       foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
                            t.ApplyLogOnInfo(logon);
                        EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
                        // and the Crystal report Viewer                                    
                        CrystalReportViewer1.ReportSource = reportDoc;
                        EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
                        // clean up
                        File.Delete("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
    Prasad Matkar MCP, MCTS

  • Linux - Oracle - Crystal Report Server XI : Error in File Report1: Failed to load database information.

    I am using Crystal Reports Server XI on Linux Server with Oracle Server 10g.
    I did install Oracle Client on Report Server and config Oracle SID in tnsnames.ora also. It works well with tnsping command. Then, I published a report which was created in Crystal Reports developer on this server.
    When I preview the report on Report Server. I got the following error message:
    Error in File Report1: Failed to load database information.
    Try to fix the problem I ran web Central Management Console -> Objects ->Report1->Process -> Database and set there the following parameters:
    Database driver: Oracle
    Server: servers_host_name
    Database: (tried both ORACLE_SID and tns_name)
    User: oracle_user_name
    Password: oracle_pw
    It still got the same problem.
    I will appreciate any help.
    Tham.

    I was having a similar problem in Crystal Reports Server 2008 v1, and had to install the full client to resolve it, which I didn't like.  I poked around some, and was able to get the Instant Client working with a few minor changes.  Note that I tried it only with the 32-bit Instant Client even though I was on a 64-bit system because that was what SAP recommended when I talked to them.
    The changes I had to do was initialize the Oracle environment variables (the instant client doesn't have a script to do this for you) and to create a soft-link which is included in the full client, but not in the instant client.
    To setup the environment variables I created a file called env.sh and put it in /opt/crystal/bobje/setup/oracle/, where /opt/crystal was my install path.  This ensured that it got called by the /opt/crystal/bobje/setup/env.sh script which runs as part of the System init scripts to initialize the environment.  The following is what I put in my file (again for the 32-bit 11g R2 instant client):
         export ORACLE_SID=summitdb
         export ORACLE_HOME='/usr/lib/oracle/11.2/client'
         export ORACLE_BASE='/usr/lib/oracle/'
         export TNS_ADMIN='/usr/lib/oracle/11.2/client/network/admin'
         export PATH="$:/usr/lib/oracle/11.2/client/bin"
         export LD_LIBRARY_PATH="$$/usr/lib/oracle/11.2/client/lib"
    After that, I created the missing soft link using this command:
         ln -s "$/lib/libclntsh.so.11.1" "$/lib/libclntsh.so.10.1"
    Once I had done those two things, and restarted the service using the /etc/init.d script, it worked fine.

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
    At this point I am getting the error �Error finding JNDI name� on Sun One
    The application will run on Netbeans/Tomcat
    I have done the following:
    I edited CRConfig.xml
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>

    <DataDriverCommon>
         <JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
    <Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>

    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>lab_ro</JDBCUserName>
         <JNDIURL></JNDIURL>

    </JDBC>
    I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
    The report works just fine in Crystal Reports.
    Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
    In context.xml I have:
    <Context path="/BOEnterpriseTest3">
    <Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
    username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    In web.xml I have
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>

    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>Data</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    in web-inf\sun-web.xml I have
    <sun-web-app>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>Data</jndi-name>
    </resource-ref>
    </sun-web-app>
    I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
    I have copied crystalreportviewers11 to the root of my web application
    I have tried to load the JNDI information and display the report
    <%@page pageEncoding="UTF-8"
    import="com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.*,
    javax.naming.*,
    javax.sql.*,
    java.sql.*"%>
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
         // Look up our data source
    DataSource ds = (DataSource)initCtx.lookup("Data");
    out.println("found ds under jdbc/Data");
    catch ( NamingException e ){
    // Look up our data source
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
    %>
    <%
    //Use the relative path to the report; the physical or full qualified URL cannot be used.
    String reportName = "useridincluded.rpt";
    //Database username and password
    String userName = "theuserid";
    String password = "thepassword";
    //check to see if the Report Source Session Variable already exist
    Object reportSource = session.getAttribute("Report1");
    // Create a new ConnectionInfos and ConnectionInfo object
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
    //Set username and password for the report's database
    connectionInfo.setUserName(userName);
    connectionInfo.setPassword(password);
    //Add object to collection
    connectionInfos.add(connectionInfo);
    //---------- Create a ReportClientDocument -------------
    com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
    //---------- Set the path to the location of the report soruce -------------
    //Open report.
    reportClientDocument.open(reportName, 0);
    //Get the report source
    reportSource = reportClientDocument.getReportSource();
    //---------- Create the viewer and render the report -------------
    //create the CrystalReportViewer object
    com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
    //set the reportsource property of the viewer
    crystalReportViewer.setReportSource(reportSource);
    //set the DB logon into the viewer
    crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
    //set viewer attributes
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setOwnForm(true);
    crystalReportViewer.refresh();
    //set the CrystalReportViewer print mode
    //crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
    crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
    //process the report
    crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    On the Sun One Web server
    On the Java Tab
    JDBC Connection Pools
    Pool Name = dev10g
    Class name = oracle.jdbc.pool.OracleDataSource
    User id = theuserid
    url = 10.10.10.10
    password=thepassword
    JDBC Resources
    JNDI Name=dev10g
    Pool = dev10g
    I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?

    I tried the following to test the JNDI
    I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
    Context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOTest">
      <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
      <Resource name="Data" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>Sun-one.xml:
    <sun-web-app>
    <context-root>BOTest</context-root>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>jdbc/dev10g</jndi-name>
    </resource-ref>
    </sun-web-app>web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>jdbc/dev10g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>Data</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>server.xml has:
    <RESOURCES>
    - <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
      <JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
    - <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
      <JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
      </RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
    init = new InitialContext();
    Context envCtx = (Context) init.lookup("java:comp/env");
    datasource = (DataSource)  envCtx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
        init = new InitialContext();
        ctx = (Context) init.lookup("java:comp/env");
        datasource = (DataSource) ctx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>

  • Please help with my crystal reports server 2008 trial setup

    Firstly, if this is in the wrong section feel free to move it. I find this forum is to big to find the information i need, in fact trying to find anything i need on this website is almost impossible. So far not impressed with SAP at all! we download a trial and when we have problems nobody can support us and we have to post in the forums for answers, which i find disgracefull to be honest. So this post is my last attempt of finding the answers to my problems or we are going to forget crystal reports server for good! I was also told that if i wanted help setting this up then i would have to pay, thats not how things usually go when we download a trial of any software!
    Anyway, rant over!!
    Right, we have windows server 2008 and have installed crystal reports server 2008. So far all i have managed to get working is the reports themselves which run and schedule fine. The dashboard and business views are so confusing i just dont get it at all, the manuals dont help either becuase they are rubbish basically. But my first problem is trying to get windows AD authentication working! easier said than done. I have spent 4 days trying to get it working but nothing is happening. this is what i have done so far
    Set up all the options in the CMC to enable AD authentication, mapped a few groups one of which i am a member of.
    Then i setup the krb5.ini file like below (removed my server name and domain name)
    [libdefaults]
        default_realm = DOMAIN.CO.UK
        dns_lookup_kdc = true
        dns_lookup_realm = true
        udp_preference_limit = 1
    [realms]
    DOMAIN.CO.UK = {
        kdc = DC.CO.UK
        default_domain = DOMAIN.CO.UK
    i also have that other file bscLogin which looks like this...
    com.businessobjects.security.jgss.initiate {
    com.sun.security.auth.module.Krb5LoginModule required;
    The server inteligence agent has been set to use the same username as i specified in the CMC which is also the service principal name and the administartion name
    i have set the web config file to use SecWINAD as default, i have also set it to give the option of enterprise, win ad etc in a drop down list
    i have gone round in circles for days following the instructions, and nothing is happening
    Also i dont see any usernames within the groups i have mapped , am i supposed to see any? am i supposed to add them manually?? if so, whats the point in that?
    So now everytime i try to log in i get this error message
    Account Information Not Recognized: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)
    There is also another error message i get, which isnt coming up right now but it says somthing along the lines of could not authenticate at this time (FWM 00005)
    i fail to see what im doing wrong. I shoudl also point out that the username i am using for everything is our own network admin password!
    any ideas on things to check before we give up with this all together?

    Hi Roberto,
    With the changes when SAP took over BusinessObjects the support packaging also changed. It's the way it is now but we are moving to and giving as much options as we can. SAP works on the Self Serve practice. the info is available but you have to find it, which is another thing we are working on to improve for BOE/CRS.
    Best place to start is in the CMS link off the start menu, You'll find the Admin Guide and Setup/Configuration Guides. You can also find all of the latest info and updates to those guides from help.sap.com then click on the SAP BusinessObjects tab along the top and then on the left click on All Products and then filter on your version.
    Once the Firewalls and Domains and your CRS Server is added to the Trusted Domains and ports opened to allow CRS to talk to the DNS Server CRS will begin to load all of the users into it's User Mappings. You still have to add each user or Group of Users but they will be available. Documents does describe how to....
    Once you have the Admin Guide search on Security and it explains in details how to set up and which ports need to be opened etc.
    Thank you
    Don

Maybe you are looking for

  • How to get the last day of the payroll period

    Hi all, I need to get the last day of the payroll period e.g. last day of Jan 2007 is 31 Jan 2007. Can anyone suggest as to how to get it? Thanks, Madhu

  • BPM(with wait step) calling another BPM

    Hello, I have this scenario whereby i need to call a BPM from another BPM process. Call it BPM1 and BPM2. BPM1 will have a Sync-Send-step to call BPM2. The following is what i have setup:- Working OKAY:- BPM1 (receive from file, send syn step to BPM2

  • Adobe 9 plugin save function does not always work

    This may not be a problem with Adobe Reader or Internet Explorer, but my credit card company says it is, so I need to look. When I try to get my on-line statements from a particular credit card company, a new IE window with Adobe Reader running "unde

  • IWeb 09 slide show stopped working

    Hi My slide show function will not work anymore. I have the proper box checked for the show to run. This started after the last OS update to 10.6.3. I have not published the site yet....but the slide show function should work even if it has not been

  • How inco terms is getting picked in PO

    Hi All,        Can you please let me know hoe inco terms is getting picked in PO when we create a PO. Note : In this case I've already checked the vendor master and info record. The inco term is not maintained in both these places but still it gets p