Disable Export Formats in Designer/Viewer

Stimulsoft Reports.WPF discussion
Post Reply
drhkocher
Posts: 15
Joined: Thu Aug 06, 2009 1:43 pm
Location: Germany

Disable Export Formats in Designer/Viewer

Post by drhkocher »

Hi,

what is the correct way to disable some export formats in the designer and viewer?

I open both with report.ShowWithWpf() or report.DesignWithWpf().

The solution from the FAQ doesn't seem to work for me. Also I don't want the customer to enable some export options by changing a config file.

Thanks.
Hartmut
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Disable Export Formats in Designer/Viewer

Post by Jan »

Hello Hartmut,

You can use following code:

Code: Select all

StiOptions.Viewer.Windows.Exports.ShowPdf = false;
StiOptions.Viewer.Windows.Exports.ShowXps = false;

....
Thank you.
Post Reply