This is a migrated thread and some comments may be shown as answers.

Localize export (render) names in webviewer

5 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Henrik Brinch
Top achievements
Rank 2
Henrik Brinch asked on 30 Apr 2008, 05:19 PM
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?

 


5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 01 May 2008, 01:11 PM
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
0
Henrik Brinch
Top achievements
Rank 2
answered on 01 May 2008, 06:33 PM
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?

0
Rossen Hristov
Telerik team
answered on 02 May 2008, 07:51 AM
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
0
Jacob
Top achievements
Rank 1
answered on 09 May 2018, 11:46 PM
Good to know I can use 'description' to change the export names, but what if I want to support multiple languages?  I don't see an extension point for changing those names dynamically in the client or the server.
0
Katia
Telerik team
answered on 14 May 2018, 10:11 AM
Hi Jacob,

Export formats strings are not localizable. Still, you can change the default description of the export format using the extensions Element declared in Telerik.Reporting configuration section.

Regards,
Katia
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
Tags
General Discussions
Asked by
Henrik Brinch
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Henrik Brinch
Top achievements
Rank 2
Jacob
Top achievements
Rank 1
Katia
Telerik team
Share this question
or