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
690
howto restrict allowed export format in report viewer?
posted

in report viewer you can choose pdf, xps, xls and xlsx, but our customer only wants to allow pdf.

the AvailableExportFormats is a readonly property. Is there a possibility to restrict allowedexportformats to pdf?

(using reporting 12.2)

Parents
  • 30945
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into the functionality that you are trying to achieve and I can suggest removing the items of the ComboBox, used in the XamReportViewer. You can use the loaded event of the XamReportViewer and in the event handler for that event, you can get the ComboBox and remove all the items, except the one that is for exporting in PDF format. I have created a sample application for you, that shows how you can implement this approach.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    ReportViewerExportRestrictions.zip
Reply Children
No Data