Page 1 of 1

Regarding report.Show() print icon disable

Posted: Mon Jul 04, 2011 1:23 am
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.

Regarding report.Show() print icon disable

Posted: Mon Jul 04, 2011 7:07 am
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.