Regarding report.Show() print icon disable

Stimulsoft Ultimate discussion
Post Reply
AbdulAleem
Posts: 37
Joined: Tue Sep 15, 2009 9:42 am
Location: jeddah

Regarding report.Show() print icon disable

Post by AbdulAleem »

Hi,

I am using the following code for viewer

StiReport report = new StiReport();

report.Load("report.mrt");

report.Show();

How can I disable all the buttons like print,export....

Thanks,
Abdul Aleem.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Regarding report.Show() print icon disable

Post by Ivan »

Hello,

You can use the following code, for example:

Code: Select all

StiOptions.Viewer.Windows.ShowOpenButton = false;
StiOptions.Viewer.Windows.ShowSaveButton = false;
StiOptions.Viewer.Windows.ShowSendEMailButton = false;
StiOptions.Viewer.Windows.ShowPrintButton = false;
StiOptions.Viewer.Windows. .....
// other properties
Thank you.
Post Reply