Home / Community & Support / Knowledge Base / Telerik Reporting / Report Viewers / Limit export options in ReportViewer to certain format only

Limit export options in ReportViewer to certain format only

Article Info

Rating: 3

Article information

Article relates to

Telerik Reporting Q1 2008+

Created by

Steve, Reporting

Last modified

25 October , 2012

Last modified by

Steve, Reporting


HOW-TO
Limit the export options in ReportViewer to certain format only

SOLUTION
By default the report viewers would show all supported rendering extensions in a combo box within the ReportViewers' toolbar. The available rendering extensions are listed in the Rendering Extensions help article.

In Telerik Reporting, device information settings are used to pass rendering parameters to a rendering extension. You can specify device information settings in a variety of ways. You can use the <Telerik.Reporting> configuration section to specify rendering parameters globally. Programmatically, you can use the ReportProcessor.RenderReport() method. For more information about specifying rendering parameters globally, see Configuring Telerik Reporting.

The example below shows a sample application configuration file where the RTF rendering extension would not be visible:

<?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.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
  <!-- Substitute Version=X.X.X.X with the assembly version you are using! -->
  <Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="RTF" visible="false">
        </Extension> 
      </Render>
    </Extensions>
  </Telerik.Reporting>
</configuration>

NOTE: The XPS rendering extension requires the Telerik.Reporting.XpsRendering.dll assembly.
DOCX/PPTX/XLSX rendering extensions require Telerik.Reporting.OpenXmlRendering.dll and Open XML SDK 2.0 for Microsoft Office (DocumentFormat.OpenXml.dll v.2.0.5022.0 or above).


SEE ALSO

Comments

  • Wil-Trans , Oct 2, 2007

    Thank goodness for this article! I thought I was going to have to figure it out on my own.

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.