Localize export (render) names in webviewer

4 posts, 0 answers
  1. Henrik Brinch
    Henrik Brinch avatar
    100 posts
    Member since:
    Aug 2004

    Posted 30 Apr 2008 Link to this post

    I'm trying to localize the export formats by creating my own renders, that is I've not yet come to that stage :(

    I've modified by web.config as follows:

    <?xml version="1.0"?>  
    <configuration> 
        <configSections> 
        <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>   
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  
    ....  
    ....  
    .... 

    and created the section:

        </configSections> 
      <Telerik.Reporting> 
        <Extensions> 
          <Render> 
            <Extension name="TIFF_CCITT4" 
                       type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" 
                       description="TIFF file (CCITT Group 4)">  
              <Parameters> 
                <Parameter name="TiffCompression" value="ccitt4" /> 
              </Parameters> 
            </Extension> 
          </Render> 
        </Extensions> 
      </Telerik.Reporting> 
      <system.web> 
    ....  
    .... 

    But I keep getting the error:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: An error occurred creating the configuration section handler for Telerik.Reporting: Could not load file or assembly 'Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. Den angivne fil blev ikke fundet.

    Source Error:

    Line 2:  <configuration>
    Line 3:   <configSections>
    Line 4:      <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>
    Line 5:      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    Line 6:     <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

     
    What am I doing wrong here?

    Btw. does anyone know if it possible to exclude certain export formats from the webviewer?

     


  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 01 May 2008 Link to this post

    Hello Henrik Brinch,

    The configuration error you are getting is caused by a wrong version number used in the configuration file. Currently you are using "2.0.0.0" which should be changed to 2.5.8.414 (the version number of Q1 2008). It seems that we have missed making that more obvious in our documentation.

    For example if you are using Q1 2008 your line should be like this:

    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/> 


    Fortunately we are currently working on an Project Upgrade Wizard and in the future you will be able to convert your projects to a newer version of Telerik Reporting automatically.

    As for you second question, you can hide an extension by using the "visible" attribute of the <Extension> element. To learn how to do that please read the topic Configuring Telerik Reporting.

    Do not hesitate to contact us again if you have any other questions.

    Best wishes,
    Ross
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
  4. Henrik Brinch
    Henrik Brinch avatar
    100 posts
    Member since:
    Aug 2004

    Posted 01 May 2008 Link to this post

    Thanks Ross, I overlooked that :)

    With all due respect, the documentation in the section "Configure Telerik Reporting" is not the best I've seen (this also includes the localization topics) - way to much guessing on how things are to be done.

    As I'm going to hide some of the formats and others I'd like to rename I started out by trying to hide all formats.

    The documentation doesn't name all the possible renders and their respective names (?!), so I guess its just about guessing right.

      <Telerik.Reporting> 
        <Extensions> 
          <Render> 
            <Extension name="TIFF" type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension> 
            <Extension name="PDF" type="Telerik.Reporting.ImageRendering.PdfReport, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension> 
            <Extension name="HTML" type="Telerik.Reporting.HtmlRendering.HtmlRenderingExtension, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension> 
            <Extension name="MHTML" type="Telerik.Reporting.HtmlRendering.MHtmlRenderingExtension, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension> 
    <!--
            <Extension name="XLS" type="Telerik.Reporting.ExcelRendering.ExcelReport, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension>
    --> 
            <Extension name="CSV" type="Telerik.Reporting.CsvRendering.CsvRenderingExtension, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension> 
          </Render> 
        </Extensions> 
      </Telerik.Reporting> 
     

    As you see from the above, I've commented out the Excel renderer as this fails
    further more what is the renderer for RTF format?

  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 02 May 2008 Link to this post

    Hello Henrik Brinch,

    You are right. There are some shortcomings in the current documentation and we have scheduled a major overhaul which will improve it a lot we hope. Please excuse us for that.

    Here are the lines for the Excel and RTF Rendering Extensions:

    <Extension name="XLS" type="Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension>

    <Extension name="RTF" type="Telerik.Reporting.ImageRendering.Rtf.RtfReport, Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" description="BLABLABLA" visible="false"></Extension>
     

    Once again, please accept our apologies.

    Greetings,
    Ross
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top