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

Restrict export type options

4 Answers 493 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Murali
Top achievements
Rank 1
Murali asked on 04 Oct 2013, 01:13 PM
Hello,

How can I restrict .PDF option for only one report.

For one report all other options should be there except pdf and for other reports all options should be there.

Thanks

4 Answers, 1 is accepted

Sort by
0
Murali
Top achievements
Rank 1
answered on 07 Oct 2013, 03:53 PM
Hello,

Could someone please let me know how to do this ?

Thanks
0
Stef
Telerik team
answered on 08 Oct 2013, 04:29 PM
Hi Murali,

Currently you can limit the export options for all ReportViewer controls by adding the following settings to the application configuration file:
<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>
  <Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="PDF" visible="false">
        </Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting>


If you are using ASP.NET ReportViewer, you may find helpful the following forum post elaborating on a Javascript approach to hide specific export options: Limit reporting export formats?

For other ReportViewer controls you may try to export programmatically from a custom UI and hide the original export list from the viewer:

Notice that both WPF and Silverlight ReportViewer controls templates can be edited with Blend.


If you need further help, please elaborate on the scenario and the used ReportViewer.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Murali
Top achievements
Rank 1
answered on 08 Oct 2013, 04:35 PM
Hello,

We are using Silverlight ReportViewer .We have taken out excel and pdf option for one report(Since it was crashing if the data is huge like 6000 rows).

But for other report(new) we need pdf option. 

We are trying to find a way to add pdf option for report and not for the other.

We need to find an option to filter export options based on the report or figure out how to prevent crashing when exporting to excel or pdf when data is huge.

Thanks
Murali


0
Stef
Telerik team
answered on 11 Oct 2013, 02:10 PM
Hello Murali,

The Silverlight ReportViewer template can be extracted with Blend. Then you can remove the default control used to load the ReportViewerModel.RenderingExtensions and replace it with your own that can handle the user selection. For example display a warning message without executing the command related to the selected extension or execute the export command.

However the best approach would be to handle the export for every report successfully. Let us know the stack trace of the exception received with other reports on export to PDF, and we will check what can be done. If it is a timeout issue due to the great amount of data, you can increase the timeouts as suggested in the How to: Increase the timeout value of a WCF service help article.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

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