Trying to add the Crystal converter

2 posts, 0 answers
  1. Eric Moreau
    Eric Moreau avatar
    38 posts
    Member since:
    Sep 2007

    Posted 13 Nov 2018 Link to this post

    Hi

    I am trying to add the converter for Crystal Reports in the stand alone designer. I have trier to follow the instructions from  https://www.telerik.com/support/kb/reporting/details/converting-reports-from-various-versions-of-crystalreports but can't get it to work.

    I have edited both Telerik.ReportDesigner.x86.exe.config and Telerik.ReportDesigner.exe.config as shown here below but after the config is saved, the designer application just does not start. If I comment out the new sections, the designer app starts correctly. What am I doing incorrectly? 

    <?xml version ="1.0"?>
    <configuration>
    <configSections>
    <section
    name="Telerik.Reporting"
    type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
    allowLocation="true"
    allowDefinition="Everywhere"/>

        <section
            name="Telerik.ReportDesigner"
            type="Telerik.ReportDesigner.Configuration.ReportDesignerConfigurationSection, Telerik.ReportDesigner.Configuration"
            allowLocation="true"
            allowDefinition="Everywhere"/>    
    </configSections>

    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>

      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <!--
          <probing privatePath="path-to-the-assemblies"/>
          -->
          <dependentAssembly>
            <!-- Required for interoperability with older versions of Telerik Reporting -->
            <assemblyIdentity name="Telerik.Reporting" culture="neutral" publicKeyToken="a9d7983dfcc261be"/>
            <bindingRedirect oldVersion="0.0.0.0-12.2.18.1017" newVersion="12.2.18.1017"/>
          </dependentAssembly>
      
      
      <dependentAssembly>   
            <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine"publicKeyToken="692fbea5521e1304"culture="neutral"/>   
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0.3500.0"/>   
          </dependentAssembly>   
          <dependentAssembly>   
            <assemblyIdentity name="CrystalDecisions.Enterprise.Framework"publicKeyToken="692fbea5521e1304"culture="neutral"/>   
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0.3500.0"/>   
          </dependentAssembly>   
          <dependentAssembly>   
            <assemblyIdentity name="CrystalDecisions.Enterprise.InfoStore"publicKeyToken="692fbea5521e1304"culture="neutral"/>   
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0.3500.0"/>   
          </dependentAssembly>   
          <dependentAssembly>   
            <assemblyIdentity name="CrystalDecisions.Shared"publicKeyToken="692fbea5521e1304"culture="neutral"/>   
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0.3500.0"/>   
          </dependentAssembly> 
      
      
        </assemblyBinding>
      </runtime>

      <connectionStrings>
        <add name="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString"
            connectionString="Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=SSPI"
            providerName="System.Data.SqlClient" />
      </connectionStrings>
      
      <Telerik.ReportDesigner DefaultWorkingDir="Examples">
      </Telerik.ReportDesigner>

    <!-- Add assembly references -->
    <!--
    <Telerik.Reporting>
    <AssemblyReferences>
    <add name="MyFunctions" version="1.0.0.0" />
    </AssemblyReferences>
    </Telerik.Reporting>
    -->

    <!--  
    <system.diagnostics>
    <trace autoflush="true" indentsize="4">
    <listeners>
    <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Temp\Telerik.ReportDesigner.log" />
    <remove name="Default" />
    </listeners>
    </trace>
    </system.diagnostics>
    -->
    </configuration>

  2. Silviya
    Admin
    Silviya avatar
    399 posts

    Posted 16 Nov 2018 Link to this post

    Hi Eric,

    From the provided information, my assumption is that you are trying to add binding redirects into the Standalone Report Designer's configuration file. Generally, to convert reports, you should use the Visual Studio Report Designer, which contains Import Report Wizard. Thus when previewing a report the report constructor is executed in the context of the Visual Studio application and all the configuration settings are obtained from the Visual Studio's devenv.exe.config file.

    Based on the following help articles I will elaborate more on how to convert Crystal Reports to Telerik Reports:
    Telerik Reporting supports two types of Crystal Reports conversion:
    1. CrystalReports10 Converter: It is built against version 10.2.3600.0 of CrystalReports and it does not require any additional steps but any other newer versions will require binding redirections.
    2.  CrystalReports13 Converter: As from R2 2018 (12.1.18.516) release, we've introduced new dedicated tool that converts Crystal Reports created with version 13.0.20.2399 (Crystal Reports for Visual Studio 2010) or newer to Telerik Reports. The same goes for that converter - any other newer versions will require binding redirections.

    For Crystal Reports build against 13.02 version, you should use CrystalReports13 Converteand have something like the following (where newVersion is the full version of Crystal Reports that you are using):
    <configuration>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentityname="CrystalDecisions.CrystalReports.Engine"publicKeyToken="692fbea5521e1304"culture="neutral"/>
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0..."/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentityname="CrystalDecisions.Enterprise.Framework"publicKeyToken="692fbea5521e1304"culture="neutral"/>
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0..."/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentityname="CrystalDecisions.Enterprise.InfoStore"publicKeyToken="692fbea5521e1304"culture="neutral"/>
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0..."/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentityname="CrystalDecisions.Shared"publicKeyToken="692fbea5521e1304"culture="neutral"/>
            <bindingRedirect oldVersion="13.0.20.2399"newVersion="13.0..."/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>

    Check the version of Crystal Reports you have installed in the machine's GAC and add the binding redirects in the corresponding Visual Studio devenv.exe.config file.

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top