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

Set Default Export from ExportGroup

4 Answers 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 15 Feb 2010, 03:16 PM
Set Default Export from ExportGroup

I want it to default to .pdf so the user does not have to select one each time.

Thanks

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Feb 2010, 05:17 PM
Hi Zed,

Currently it is not possible to have a predefined/preselected export format, which however makes sense and I've logged it as a feature request. You have two options for the time being:
  • Hide all the other formats so that only PDF is left. This can be achieved through the device settings like so:

    <configSections>
                    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />
                  </configSections>
                  <Telerik.Reporting>
                    <Extensions>
                      <Render>
                        <Extension name="IMAGE" visible="false">
                        </Extension>
                        <Extension name="MHTML" visible="false">
                        </Extension>
                        <Extension name="XLS" visible="false">
                        </Extension>
                        <Extension name="XPS" visible="false">
                        </Extension>
                        <Extension name="CSV" visible="false">
                        </Extension>
                        <Extension name="RTF" visible="false">
                        </Extension>
                        <Extension name="IMAGE" visible="false">
                        </Extension>
                        <Extension name="PDF" visible="true"
                        </Extension>
                      </Render>
                    </Extensions>
                  </Telerik.Reporting>
  • Hide the export combobox and button by setting the viewer's ShowExportGroup property to false. You can then handle the export by yourself through external UI, which would allow only export to PDF (more info here).

Regards,
Steve
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Mustafa
Top achievements
Rank 1
answered on 22 Jan 2014, 03:55 PM
Hi Steve,

What is the extension name of TIFF file?
http://www.telerik.com/help/reporting/configuring-rendering-extensions.html 
I've looked there but not written.

Regards
Mustafa,
0
Stef
Telerik team
answered on 23 Jan 2014, 08:42 PM
Hi Mustafa,

The Tiff output format can be produced by the IMAGE rendering extension.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Robert
Top achievements
Rank 1
answered on 19 Nov 2014, 09:14 PM
Don't know if this has been answered elsewhere, but this works well:

<script>
    $(function () {
        $($('#ReportViewer1_ReportToolbar_ExportGr_FormatList_DropDownList option[value="Export to the selected format"]')[0]).remove();
        $($('#ReportViewer1_ReportToolbar_ExportGr_FormatList_DropDownList option[value=PDF]')[0]).attr('selected', 'selected');
    });
</script>

Assuming your report viewer is named "ReportViewer1"... alter as necessary.

Bob Graham
Tags
General Discussions
Asked by
Zed
Top achievements
Rank 1
Answers by
Steve
Telerik team
Mustafa
Top achievements
Rank 1
Stef
Telerik team
Robert
Top achievements
Rank 1
Share this question
or