Difficulties with Crystal Report 2010

Good morning to everybody!
I am with difficulties in generate a report using Crystal Report 2010, following:
I have two distinct Tables, being one of the Customers Registered in the System and another of the Delivery Locations that only is supplied when the Customer own a Location of different delivery from your cadaster, kind Customer such has x local only then I supply the second table with such local.
I want the report show me all the customers selected by the user, be whats are the Customers, however whether one or more customers also own other local of delivery shows these local soon after the normal data of the same.
Only that I do not be obtaining such results, because the alone report to shows me the customers that own such delivery addresses in the prison Table, the ones that just do not have he scorns in other words does not print anything.
Help me please and if can pass some examples.,
Thanks!
Dilson
Edited by: DJHasselmann on May 31, 2011 4:26 PM

Go to
Database -> Database expert
Select link tab, double click the join between tables and change to Left outer join
Ian

Similar Messages

  • Detail sections not displayed with Crystal Reports 2010 Runtime (SP1 also)

    I have migrated a VB app from RDC 9 to Crystal Reports 2010 and I'm experiencing a very strange issue.
    In a report with 6 nested groups, the detail part is splitted in 7 section, and the whole detail has the "keep together" flag activated. At runtime, some detail sections are not displayed. There is no suppress condition on the detail section. The missed sections are those near bottom of the page. I suppose that when there is no room to print the section on the page and it should go on the next page, Crystal forget to display it.
    I exported the report in Crystal format and reopened with Crystal Reports designer and the missed section are displayed.
    The same report is displayed correctly using RDC 9.
    If I show the group tree and select the missed section group, the section is correctly displayed on a separate preview page.
    I've some screenshot to better demonstrate the problem.
    I hoped SP1 will resolve the issue but unfortunately it didn't.
    Pier Alberto Guidotti

    This issue has been escalated for a fix. tracking number is TE5000325237. For anyone wanting to attach to this thread with a similar issue, please note the behavior as decribed in the TE below. If the description does not match your issue exactly, please create a new thread.
    Description - Steps to Reproduce;
    1) Run the report in the CR 2008 designer - note the second page
    2) Run the report in VS2010 app using CRVS2010 SP1:
    CrystalReportViewer1.ReportSource = <path to report>
    3) Look at page 2 and compare to page 2 from the CR2008 designer (also, see attached compare.jpg file which is a screen shot of both views) - note missing group on page 2
    4) Export to PDF, DO, RTF - same issue
    5) Print to printer using the viewer print button - same issue
    6) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    crReportDocument.PrintToPrinter(1, 1, 1, 2)
            MsgBox("Done")
    7) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    Dim rcd As ISCDReportClientDocument
            rcd = crReportDocument.ReportClientDocument
            rcd.PrintOutputController.PrintReport()
            MsgBox("Done")
    8) Export to RPT file format - view this export in the CR2008 Designer - report looks as it should
    9) Add report to the .NET2010 project. trying to view the repor tin the .NET2010 IDE results in .NET crashing.
    - Ludek

  • Crystal reports 2010:Failed to load database information

    Hi guys,
    I had a vb.net project with crystal reports 2010 for the reporting.The report works fine inside vs 2010.I tried to build an installer for my project using 'Advanced installer'. In Advanced installer there's an option to import the run time engine for crystal reports for .net framework 4.0 which is 'CR Run time 64bit 13_0_1' but since my system and other target systems are 32 bit,I figured to also import the 32-bit version.
    But first when i followed the path for the package there was nothing so i downloaded both 32 and 64 bit run time engine then located them i that path.
    Just for the information,when i installed crystal reports on my PC,i think it installed 'Crystal Reports for visual studio'
    So i built the installer and installed it on my PC but when it try to view the report it crashes.I also try to install it on another PC and it throws this exception:
    CrystalDecisions.CrystalReports.Engine.DataSourceException: Failed to load database information.
    Error in File CrystalReport6 {566E2F0C-8C45-4647-8017-15BD6DB1F195}.rpt:
    Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database information.
    Error in File CrystalReport6 {566E2F0C-8C45-4647-8017-15BD6DB1F195}.rpt:
    Failed to load database information.
       at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
       at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
    What am i missing?

    You have two distinct issue here - one on your dev computer and an unrelated on on the deployed computer.
    First your deployment project.
    You have to decide how you want to compile the app; 32 bit, or 64 bit?
    For 32 bit app, use the 32 bit msm file
    For 64 bit app use the 64 bit msm file
    Next, you are using Service Pack 1, current SP is #9, so update both your CRVS install (using the install exe) and the deployment project with the correct msm. Links to the msm files and the install exe are in this doc:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Once you have SP 9 installed, recompile your app making sure it still runs. Then build your deployment project and deploy. See what happens then...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • CRVS2010 Beta - Crystal Reports 2010 with VS 2010 Pro fr

    Hi,
    I fisrt use CR 2010 with Visual 2010 RC US. it works fine.
    After the offcial launch of VS 2010, i uninstall my VS 2010 RC to dowload the VS 2010 Pro French.I'm not able to use Crystal Reports 2010 anymore, even after uninstall/install Crystal Reports 2010 !! I always get the .mht file invinting me to dowload Crystal Report.
    Any help will be appreciate.
    Thanks.
    Edited by: Don Williams on May 12, 2010 8:45 AM

    Updated the subject line.
    Check the first link in this forum for more info. Currently it is English only.

  • Crystal Reports 2010 SP1 on IIS 7.0 - Report is not being displayed

    Hi,
    Finally, the keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll error is gone, after I installed Crystal Runtime 2010 SP1. Also, I tested Crystal Report 2010 SP1 on my Windows 32 application and I can tell that I do not have this error anymore and report is being displayed properly.
    But Crystal Report is not being displayed on ASP.NET page on MS Server 2008 standard edition SP2 with IIS 7.0. Database resides on iSeries remote machine.
    The MS Server 2008 is virtual machine.
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    Simply the report is not being displayed at all. No errors are being recorded in the Event Viewer.
    Nothing happens; excerpt the page is Loadingu2026 and Waiting for u2018website nameu2019 in the left lower corner of Firefox web browser.
    Here is the code behind aspx page with a command button - very simple:
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    protected void Button1_Click(object sender, EventArgs e)
    ReportDocument crReportDocument;
    Database crDatabase;
    Tables crTables;
    // CrystalDecisions.CrystalReports.Engine.Table crTable;
    TableLogOnInfo crTableLogOnInfo;
    ConnectionInfo crConnectionInfo;
    crConnectionInfo = new ConnectionInfo();
    //Set server name
    crConnectionInfo.ServerName = this._strServerName;
    //set database name
    crConnectionInfo.DatabaseName = this._strDatabaseName;
    crConnectionInfo.UserID = this._strUserID;
    crConnectionInfo.Password = this._strUserPassword;
    //Set integrated security
    crConnectionInfo.IntegratedSecurity = false;
    crReportDocument = new ReportDocument();
    crReportDocument.Load(Server.MapPath("~/crystal-reports/TransformerLoad/TransLoadMonthlyMax.rpt"));
    crDatabase = crReportDocument.Database;
    //Set all tables from current report file
    crTables = crReportDocument.Database.Tables;
    //crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
    //Apply schema name to the table's location
    foreach (CrystalDecisions.CrystalReports.Engine.Table _crTable in crTables)
    crTableLogOnInfo = _crTable.LogOnInfo;
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
    _crTable.ApplyLogOnInfo(crTableLogOnInfo);
    //Check if database table name starts
    if (_crTable.Location.StartsWith("XFMRSMAX", StringComparison.CurrentCulture) ||
    _crTable.Location.StartsWith("XFMRSMIN", StringComparison.CurrentCulture))
    //_crTable.Location = this._strSchemaName + "." + _crTable.Location.Remove(8) + Convert.ToInt32(Request.QueryString\"ReportYear\");
    _crTable.Location = "XFMRSMAX09";
    else
    _crTable.Location = _crTable.Location;
    this.CrystalReportViewer1.ReportSource = crReportDocument;
    This code runs on my development machine Win XP SP3
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    This code also runs on another development server - Windows XP SP3 (IIS 5.1)
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    ispnet_client folder has IUSR user and this user has read permissions to this folder. I even tried to change the permissions to Read & Execute.
    I am developing my reports using Crystal Reports 2008 SP2.
    Any help would be greatly appreciated.
    Serghei

    Hi Ludek,
    Thank you for your response.
    I checked the web.config file, all http handlers are there. I think the handlers are required to render the images on crystal report viewer but in my case the report viewer is not being rendered.
    I have to questions:
    1. What exact folders should be under aspnet_client\system_web?
    In my case I have structure like this
    aspnet_client\system_web\2_0_50727\crystalreportviewers13
    aspnet_client\system_web\4_0_30319\crystalreportviewers13
    Should I have folders something like this
    aspnet_client\system_web\2_0_50727\crystalreportviewers13_1
    aspnet_client\system_web\4_0_30319\crystalreportviewers13_1
    after I installed Crystal Reports 2010 SP1
    Also, in C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET 4.0\Common\Crystal Reports 2011\ there is no folder named as crystalreportviewers13 but instead crystalreportviewers
    a.     Should I copy all files from this folder to aspnet_client\system_web\2_0_50727\crystalreportviewers13, or
    b.     Should I copy all files from this folder to aspnet_client\system_web\2_0_50727\crystalreportviewers13 and rename this folder to
    crystalreportviewers
    2. Can you explain how to get a data report?
    This is the quote from your previous answer
    I'd be interested to see this simplified to a saved data report - no DB logon code - as a test...  
    Thank you Serghei

  • Loading Crystal Report 2010 Error

    When I try to install C# application that I created at the client's workstation, i am getting an error about not getting my report loaded. The application loads the report working in my development workstation, but when i installed in the other workstation, then it will not load the report. I have installed Visual Studio 2010 with CR 2010. I had created the reports with Crystal Report 2008, and want to migrate to VS2010.
    Here's what I get from the client's workstation:
    Method 'get_ReportRequestStatus' in type 'CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper' from assembly 'CrystalDecisions.CrystalReports.Engine, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' does not have an implementation.
    I have all my CR *.dll referrenced to the latest one, but I am not sure if I am using the right *.dll.
    Thanks for any input on this. It'll be greatly appreciate it.

    Correct, you are using the beta version of the runtime.
    Search here on how to remove version 14 and use the RTM release version 13.
    Thank you
    Don

  • Crystal Reports 2010 shows error on 64 bit vista/7 machines

    Hello,
    <br/><br/>
    I search the threads before posting my problem. I saw number of threads similar to this but none of them is pointing towards solutions to my problem. Thus decided to create new one. I tried various things listed in old post to solve my problem but no solution. I am listing below what I have already tried.
    <br/><br/>
    Following is my development environment:<br/>
    - OS windows XP 32 bit<br/>
    - MS Visual Studio 2010<br/>
    - Crystal Reports 2010 <br/>
    - windows application with target framework 3.0<br/>
    - when i build solution for client i change target platform to x86<br/>
    <br/><br/>
    My client machine<br/>
    1)<br/>
    - OS windows vista 64 bit<br/>
    - Crystal Reports for VS2010 Redist 64 bit<br/>
    2)<br/>
    - OS windows 7 64 bit<br/>
    - Crystal Reports for VS2010 Redist 64 bit<br/>
    <br/><br/>
    On my development machine everything works fine. Only client machines having problem opening reports. I am having problem opening reports on client machines. I shows following error. My windows application runs fine but when we try to open reports it shows log4net error.
    <br/><br/>
    <br/>
    start error text----
    <br/>
    <br/>
    The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception.<br/>
    <br/>
    See the end of this message for details on invoking <br/>
    just-in-time (JIT) debugging instead of this dialog box.<br/>
    <br/>
    Exception Text **************<br/>
    System.TypeInitializationException: The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.<br/>
    File name: 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
       at CrystalDecisions.Shared.SharedUtils..cctor()<br/>
    <br/>
    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].
    <br/>
       --- End of inner exception stack trace ---
       at CrystalDecisions.Shared.SharedUtils.GetFullTypeName(Type type)
       at CrystalDecisions.ReportSource.ReportSourceFactory..cctor()
       --- End of inner exception stack trace ---
       at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
       at BackOffice.frmReportViewer.InitializeComponent()
       at BackOffice.frmReportViewer..ctor()
       at BackOffice.mdiMain.vendorsListToolStripMenuItem_Click(Object sender, EventArgs e)
       at BackOffice.mdiMain.vendorsListToolStripMenuItem1_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    <br/><br/>
    Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    <br/><br/>
    BackOffice
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/BO%20config%20removed/BackOffice.exe
    <br/><br/>
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    <br/><br/>
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    <br/><br/>
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    <br/><br/>
    CrystalDecisions.Windows.Forms
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.1.220
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
    <br/><br/>
    CrystalDecisions.Shared
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.1.220
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
    <br/><br/>
    CrystalDecisions.ReportSource
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.1.220
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
    <br/><br/>
    JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <br/>
    configuration<br/>
        system.windows.forms jitDebugging="true" <br/>
    configuration<br/>
    <br/>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    <br/><br/>
    end error text----
    <br/><br/>
    I am not using log4net in my windows application. As I know not directly. No log4net tag in config. Not even in publish file listing.<br/><br/>
    I have  Crystal Decisions.CrystalReports.Engine in my reference. <br/>
                                            ReportSource<br/>
                                            Shared<br/>
                                            Windows.Forms<br/>
    <br/><br/>
    I tried adding reference of log4net in my app and then tried deploying. slight modified error. Instead of not find the file it says not able to load and rest error part is same.
    <br/><br/>
    I have excluded all crystal dll from publish file list and tried.
    <br/><br/>
    I even updated cilent machine with   Crystal Reports for VS2010 Redist 64 bit support pack 1.
    <br/><br/>
    I tried adding following in config but no result<br/>
         startup useLegacyV2RuntimeActivationPolicy="true"<br/>
           supportedRuntime version="v2.0.50727"<br/>
         startup
    and
         startup useLegacyV2RuntimeActivationPolicy="true"<br/>
           supportedRuntime version="v4.0"<br/>
         startup<br/>
    <br/>
    I found related to this in one of the thread. I am not sure but this could be the problem. what is the solution for it?<br/>
    In my development machine windows/assembly folder, there exist 2 log4net files<br/>
    Assembly Name  -   version    -      Processor Architect<br/>
      - log4net           -    1.2.9.0      -    blank<br/>
      - log4net           -    1.2.10.0    -    x86<br/>
    But in my client machine, there is only one log4net file.<br/>
    Assembly Name -    version     -     Processor Architect<br/>
      - log4net           -    1.2.10.0    -    AMD64<br/>
    <br/><br/>
    I have spend lot hours on it but no output. Any help or direction is appreciated.<br/><br/>
    Thanks,
    Edited by: Dhairya Tolat on Mar 21, 2011 8:13 PM

    Hi deguri,
    1. Are you going to sell the application(which embeds the crystal runtimes) to another company?
    2. Is the application intended for users within your company?
    If the answer to question 1 is a 'Yes', then you need to purchase the license.
    If the answer to question 2 is a 'Yes', then you do not need the license.
    Take a look at a question posted in response to the blog i referred to in my previous post. That is a typical scenario where license needs to be purchased.
    We are product a client/server application in VS 2010 and would like to include Crystal Reports. The rendering/runtime would be on the server component. Our package is distributed to our clients and runs on their hardware. We would be producing the reports and shipping them with the software (i.e. no embedded designer).
    Am I correct in understanding that we would need only a single SAP Developer Advantage license (~$2500 USD) and that would cover redistribution to all our our clients?
    Thanks in advance!
    CR for VS 2010 on Application Server
    2011-06-15 14:18:50 Blair Wheadon  Business Card [Reply]
    Yes, you are correct.
    I hope that clarifies things...
    Deepu.

  • Keycodedecoder.dll failure still there in Crystal Reports 2010 SP1

    Hi
    I have a problem with getting an error that busineesobjects.licensing.keycodedecoder.dll not found for version 13.0.2000.0.
    I am using Crystal Reports for Visual Studio 2010 Support Pack 1 (where I thougt this problem was resolved)
    The exception does not show up by default but if I subscribe to the AssemblyResolve event I can see that the common language runtime tries to bind the keycodedecoder assembly and fails.
    You can reproduce it by creating a .Net 4 windows forms project in Visual Studio 2010 and have Crystal Reports 2010 SP 1 installed. Here is the code for reproducing it:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    namespace CR2010error
      public partial class Form1 : Form
        ReportDocument doc = null;
        public Form1()
          InitializeComponent();
          AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(QFE);
        private void button1_Click(object sender, EventArgs e)
          doc = new ReportDocument();
        private Assembly QFE(object sender, ResolveEventArgs e)
          // Format of e.Name:  [name-without-exe-and-dll], Version=[version], Culture=[culture], PublicKeyToken=[key]
          Assembly assembly = null;
          string[] parts    = e.Name.Split(',');
          if (4 <= parts.Length)
            assembly = HandleSignedAssembly(parts[0].ToLower().Trim(), parts[1].ToLower().Trim(), parts[2].ToLower().Trim(), parts[3]);
          return assembly;
        private enum FailType { NoFail, FileNotExist, NoVersionInfo, QfeError, LoadError, };
        private Assembly HandleSignedAssembly(string name, string version, string culture, string keyToken)
          if (name.ToLower().EndsWith("xmlserializers") || name.ToLower().EndsWith(".resources"))
            return null;
          Assembly assembly   = null;
          string[] parts1     = version.Split('=');
          string   wantVer    = parts1[1].Trim();
          string[] parts2     = wantVer.Split('.');
          int      wantMajor  = Convert.ToInt32(parts2[0]);
          int      wantMinor  = Convert.ToInt32(parts2[1]);
          int      foundMajor = -1;
          int      foundMinor = -1;
          string   path       = CreateFullPath(name);
          string   exception  = "";
          FileVersionInfo fvi = null;
          FailType failType   = FailType.NoFail;
          try
            if (!File.Exists(path))
              failType = FailType.FileNotExist;
          catch (Exception e1)
            failType = FailType.FileNotExist;
            exception = e1.Message;
          if (FailType.NoFail == failType)
            try
              fvi = FileVersionInfo.GetVersionInfo(path);
              foundMajor = fvi.FileMajorPart;
              foundMinor = fvi.FileMinorPart;
            catch (Exception e2)
              failType = FailType.NoVersionInfo;
              exception = e2.Message;
            if (null != fvi)
              if (wantMajor != foundMajor || wantMinor != foundMinor)
                failType = FailType.QfeError;
              else
                try
                  assembly = Assembly.LoadFrom(path);
                catch (Exception e3)
                  failType = FailType.LoadError;
                  exception = e3.Message;
                  assembly = null;
          if (null == assembly)
            Message_SignedAssembly(failType, exception, path, name, wantVer, null == fvi ? null : fvi.FileVersion);
          return assembly;
        private void Message_SignedAssembly(FailType failType, string exception, string path, string nameOfDll, string wantVersion, string foundVersion)
          StackTrace st;
          StackFrame sf = GetOriginatingStackFrame(out st);
          string referredBy = "";
          if (null != sf)
            if (-1 != sf.GetFileLineNumber())
              referredBy = string.Format(msgSource1, sf.GetMethod().DeclaringType, sf.GetMethod().Name, sf.GetFileLineNumber(), sf.GetFileColumnNumber());
          string reason = "";
          if (failType == FailType.FileNotExist)
            reason = string.Format(msgReason1, path);
          else if (failType == FailType.LoadError)
            reason = string.Format(msgReason2, exception);
          else if (failType == FailType.NoVersionInfo)
            reason = string.Format(msgReason3, exception);
          else if (failType == FailType.QfeError)
            reason = string.Format(msgReason4, wantVersion, foundVersion);
          else
            return;
          string msg = string.Format(msgBase1, referredBy, nameOfDll, reason);
          MessageBox.Show(msg, "QFE Resolver failed", MessageBoxButtons.OK, MessageBoxIcon.Warning);
          MessageBox.Show("StackTrace: " + st.ToString());
        private string CreateFullPath(string name)
          if (name.EndsWith(".resources"))
            name = name.Substring(0, name.Length - ".resources".Length);
          return AppDomain.CurrentDomain.BaseDirectory + name + ".dll";
        private StackFrame GetOriginatingStackFrame(out StackTrace st)
          st = new StackTrace(true);
          StackFrame sf = null;
          for (int i = st.FrameCount - 1; 0 <= i; --i)
            StackFrame frame = st.GetFrame(i);
            string s = frame.GetMethod().Name;
            if (frame.GetMethod().Name == "QFE")
              break;
            if (null != frame.GetFileName())
              sf = frame;
          return sf;
        #region Message
        static string msgBase1 =
    @"The program has failed to resolve a reference to a dll.
    Referenced dll is
    .dll
    Reason for failing:
        static string msgSource1 =
    Referred by
        static string msgReason1 =
    @"The referenced file does not exist. Searched for file:
    Copy the missing referenced file and retry again.";
        static string msgReason2 =
    @"The referenced file cannot be loaded.
        static string msgReason3 =
    @"Version information could not be obtained from the referenced file.
    Recompile the referenced file and retry again.
        static string msgReason4 =
    @"The referenced file is not compatible with the requested version.
    The requested version was , but the found file has version .
    According to the rules of QFE, these versions are not considered to be compatible.
    Replace the referenced file with a compatible version and retry.";
        #endregion

    I am only having version 13 (SP1) installed on my computer.
    If I run modules I can not see that crpe32.dll is loaded but there are fourteen other Crystal dll's loaded all with version 13 (from the below path)
    c:\program files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\
    Yes I konw it's just a warning but it's really enoying and I think it's bad if you said all references to this keycodedecoder.dll has been removed in version 13 but this warning has been there in the beta version and the final version and now also in the SP1 version, and you have told us it has been fixed at least for the SP1 version.
    I have tried my test project on a lot of other computers here at the company and we all get the same error so it's strange if you can't reproduce it. Can I e-mail you a zip-file of my test project or attach it in some way at this forum?
    I am running a 32 bit version of Windows 7 with CRforVS_redist_install_32bit_13_0_1 installed.
    Regards Tony

  • Print layout different with crystal report 2008 runtime

    Hi,
    I have reports which I print on a pre printed stationary. With Crystal report 11.5 run time it works fine.
    Now I am using Crystal Report 2008 run time and with this I found that layout on the print is different than the actual layout in the design.
    The print with CR 2008 run time is not exactly matching with the pre printed stationary. Whereas it is working fine with the 11.5 run time.
    Can anyone please help?
    Thanks,
    Abhijit Gorhe

    hi,
    you can verify the settings
    File -> Page Setup
    - Printer Options
    - Page Options
    - Margins
    Regards,
    Vamsee

  • Problem with Crystal reports for Eclipse and Postgres-databases

    Hi,
    Is there a known problem when using a PostgreSQL-database to create a report with Crystal reports Plugin? When I drag a table, then occurs a error-windows, that the object can't  created.
    I have found a workaround for solving the problem. After new installing Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 and Crystal reports Plugin 11.8.6.v1371 with JRE 1.6.0_01 the error message allways occurs, when I select a table from a PostgreSQL database (Version 8.2). After restarting eclipse you see the last selected tables in the field explorer and you can drag the table fields in the report. A repeated choice of the same table causes aliases for the table in the field explorer after restarting eclipse.
    Error.log:
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments:  -os win32 -ws win32 -arch x86
    Error
    Tue Dec 16 14:03:53 CET 2008
    Verursacht durch: java.lang.IllegalArgumentException
    com.businessobjects.crystalreports.designer.core.ReportException: java.lang.IllegalArgumentException
    at com.businessobjects.crystalreports.designer.core.ExceptionFactory.B(Unknown Source) at com.businessobjects.crystalreports.designer.core.ExceptionFactory.create(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.data.TableElement.add(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.AddCommand.doCommand(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.C(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.CoreCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(Unknown Source) at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
    at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
    at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:455)
    at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:257)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:362)
    at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:288)
    at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:171)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalArgumentException---- Error code:-2147467259 Error code name:failed at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source) at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source) at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.if(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.void(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.a6.for(Unknown Source) at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)
    Best Regards
    Arnold

    Your issue appears to be a Crystal Reports for Eclipse report designer thing, and not a JRC runtime thing.  The JRC runtime does support Type 4 JDBC drivers, but all modern PostgreSQL drivers are Type 4.
    The current report designer is more restrictive than the JRC runtime - and PostgreSQL, being not on the supported platforms list, has never been tested with the embedded designer.
    Unless there's anybody out there with experience with PostgreSQL and CR4E designer, who would be willing to share their experiences.
    Sincerely,
    Ted Ueda

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Error when opening a BW query with Crystal Reports

    Hi all,
    I am having problems when opening a BW query with Crystal Reports, the strange thing is that it only happens with
    the bo user I have created. If I use a user that already exists and that has SAP_ALL authorization it works.
    I don't know if this could be an authorizations issue, but I have created a role with all the authorizations stated in the manual.
    The error I am getting is the following:
    "An error occurred while generating a new report template. Error in UNKNOWN.RPT file"
    Does anyone know what this could be?
    Thanks

    Well,
    I cannot access the system now. But I think it is not an issue of authorization, because I assigned all the good user's role to the bo user,
    and even with that, it still don't work.
    Thanks

  • Why we need ABAP if we can connect With Crystal Reports to SAP R/3

    Hi,
        I am new to Crystal reports.I came to know that we can connect SAP R/3 by using SAP InfoSet,SAP Table Cluster and Function connectivity in Crystal Reports.So we can generate reports for SAP R/3 database with out need of ABAP.So why we need to go ABAP module.Is there any disadvantages if we dont use ABAP to generate reports or we can use always Crystal Reports to generate Reports for R/3 database?

    Hi,
    it is correct that you can built a Crystal Report without the need to use ABAP, but we have lots of customers that have invested over the years into ABAP Routines and Crystal REports is able to leverage those as well. So with Crystal Reports you have the choice to leverage existing ABAP Functions as a source for reporting - which might help to leverage complex processing on the backend - or to use InfoSets and tables.
    regards
    Ingo

  • ECC integration with Crystal report 2008

    Hello,
    If some one have guide of ECC integration with Crystal report 2008 ? Please share me I need to integrate ECC to crystal 2008 integration.
    Regards,
    Sankar.G
    Basis Cosultant

    Do not cross post.
    Read the "Rules of Engagement"
    Regards
    Juan

Maybe you are looking for