Page 1 of 1

Disable Export Formats in Designer/Viewer

Posted: Thu Sep 03, 2009 10:10 am
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

Disable Export Formats in Designer/Viewer

Posted: Fri Sep 04, 2009 2:35 pm
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.