Set Default Export from ExportGroup

5 posts, 0 answers
  1. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 15 Feb 2010 Link to this post

    Set Default Export from ExportGroup

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

    Thanks
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 16 Feb 2010 Link to this post

    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.
  3. Mustafa
    Mustafa avatar
    20 posts
    Member since:
    Aug 2013

    Posted 22 Jan 2014 Link to this post

    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,
  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 23 Jan 2014 Link to this post

    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.

  5. Robert
    Robert avatar
    27 posts
    Member since:
    Aug 2014

    Posted 19 Nov 2014 Link to this post

    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
Back to Top