Buttons in Preview

Stimulsoft Reports.NET discussion
Post Reply
Shade
Posts: 4
Joined: Fri Jun 16, 2006 3:14 am

Buttons in Preview

Post by Shade »


By default Preview Window have many buttons. It possible to hide some buttons?

Thanks.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Buttons in Preview

Post by Vital »

Shade wrote: By default Preview Window have many buttons. It possible to hide some buttons?

Thanks.

At starting of your application use this code:

Code: Select all

StiOptions.Load();

StiOptions.Preview.Window.ShowToolbar = false;
StiOptions.Preview.Window.ShowPageViewMode = false;
StiOptions.Preview.Window.ShowVertScrollBar = false;
StiOptions.Preview.Window.ShowStatusBar = false;
StiOptions.Preview.Window.ShowPrintButton = false;
StiOptions.Preview.Window.ShowOpenButton = false;
and etc.

Code: Select all

StiOptions.Save();

Post Reply