Page 1 of 1

To Hide Controls Button on Tool bar

Posted: Wed Jun 20, 2012 2:10 am
by ajayit53
Hi,

I am tryin to hide the control on tool bar but from code hide using C# 3.5 ,but it is not getting hide please help me out ,i am using Stimulsoft 2008
i referred your samples of custom preview control but it is not working,i am sending you the code please guide me

StiReport report = new StiReport();
Stimulsoft.Report.Render.StiPreviewControl previewControl = new Stimulsoft.Report.Render.StiPreviewControl();


previewControl.ShowExport = false;
previewControl.SaveConfig();
previewControl.Refresh();
previewControl.LoadConfig();

report.Load("D:\\Report.mrt");

report.Compile();
report.Render(false);
report.Show();


To Hide Controls Button on Tool bar

Posted: Thu Jun 21, 2012 4:14 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

StiOptions.Viewer.Windows.ShowExportButton = false;
StiReport report = new StiReport();
report.Load();
...
report.Show();
Thank you.