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)
Hello
do you have an example of this? (removing the items from the Export Combobox)
I am using UltraReportViewer, and VB.net
Thanks,
Edgar
No thanks, I implemented the workaround to hide the export functionality in the report viewer and created an export button in a tool bar calling the export myself.
I put in a feature request for the wpf report viewer.
Hello bet32978,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi bet32978,
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. You can then set the Uri of the modified control template to the property MergedDictionary of the UltraReportViewer control.
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
sorry I've just seen the message today, and I forgot to mention that I'm using ultrareportviewer. Is it the same there?