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

Turning off certain export functions in Telerik Reporting

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sasa
Top achievements
Rank 1
Sasa asked on 28 Aug 2008, 06:59 PM
Is it possible to have Adobe PDF as the only exporting format choice in the report viewer? 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 29 Aug 2008, 11:01 AM
Hi Sasa,

You can configure the rendering extensions of the report viewer via the web.config file of your web site. For example, the following part of a web.config file can be used to hide all rendering extensions, except PDF:

<?xml version="1.0"?>  
<configuration> 
    <configSections> 
        <section name="Telerik.Reporting" 
                 type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection,
                                                    Telerik.Reporting.Processing, Version=x.x.x.x,
                                                    Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
 
                 allowLocation="true" 
                 allowDefinition="Everywhere"/>  
    </configSections> 
    <Telerik.Reporting> 
        <Extensions> 
            <Render> 
                <Extension name="IMAGE" visible="false"/>  
                <Extension name="PDF" visible="true"/>  
                <Extension name="HTML" visible="false"/>  
                <Extension name="MHTML" visible="false"/>  
                <Extension name="XLS" visible="false"/>  
                <Extension name="CSV" visible="false"/>  
                <Extension name="RTF" visible="false"/>  
            </Render> 
        </Extensions> 
    </Telerik.Reporting> 
    <!-- The rest of the file is skipped to make it shorter... --> 
</configuration> 
 

You should replace the string 'x.x.x.x' with your version of the Telerik Reporting assemblies.

For further information about configuring the various rendering extensions you can refer to the following topics in the Telerik Reporting documentation:
Best wishes,

the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Sasa
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or