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

Restrict export options in Reportviewer works only in local machine.

2 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sharan
Top achievements
Rank 1
Sharan asked on 20 Jul 2012, 11:11 AM
Hi Team

I need to hide all the export options from Report viewer except (PDF and XLS). I had done below changes in web.config. It works fine in my local machine. But It does not work in Deployed link.

In one of the thread I understood that we need to deploy Telerik.Reporting.XpsRendering.dll. I have added this dll in bin folder of deployed code. But still I get the exception.

Please help me what's wrong with this code??


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

<Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="IMAGE" visible="false"></Extension>
        <Extension name="XLSX"  visible="false"></Extension>
        <Extension name="RTF"   visible="false"></Extension>
        <Extension name="PPTX"  visible="false"></Extension>
        <Extension name="DOCX"  visible="false"></Extension>
        <Extension name="CSV"   visible="false"></Extension>      
        <Extension name="MHTML" visible="false"></Extension>
        <Extension name="XPS"   visible="false"></Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting> 

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 Jul 2012, 11:16 AM
Hi Sharan,

What is the Telerik Reporting version that you're using and what is the exception message that you get?
Since you only want PDF and XLS to be available as export options, you do not need Telerik.Reporting.XpsRendering.dll and Telerik.Reporting.OpenXmlRendering.dll assemblies to be deployed on your server at all, please remove them.

The markup in the configuration file should look like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- The configSectins element should be the first child element of configuration -->
  <configSections>
    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=6.1.12.611, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
  <Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="RTF" visible="false">
        </Extension>
    <Extension name="IMAGE" visible="false">
        </Extension>
    <Extension name="MHTML" visible="false">
        </Extension>
    <Extension name="CSV" visible="false">
        </Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting>
</configuration>

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Sharan
Top achievements
Rank 1
answered on 26 Jul 2012, 12:19 PM
Thanks Steve..Its working

Sharan
Tags
General Discussions
Asked by
Sharan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Sharan
Top achievements
Rank 1
Share this question
or