Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Remove Report Format
posted

Hi,

in the Report Viewer I can export to Pdf, xps, excel...

is it possible to remove all the Export Formats except for PDF ?

 

Fabi

Parents
  • 1125
    posted

    Hi Fabi,

    There is no direct option for filtering the export formats that are shown.

    A possible workaround would be to redefine the report viewer's control template and remove the other export formats (assuming you want only the PDF option, this solution currently does not work with the other formats). Please also note that you can still programmatically call the Export() method on the viewer with any of the formats.

    Alternatively, you can hide the Export elements from the viewer by setting the xamReportViewer.ToolBarSettings.ExportVisibility property to Visibility.Hidden and have an export command outside of the Report Viewer.

    Regards,
    Héctor 

Reply Children