To Hide Controls Button on Tool bar

Stimulsoft Reports.NET discussion
Post Reply
ajayit53
Posts: 2
Joined: Mon Mar 14, 2011 11:29 pm
Location: India

To Hide Controls Button on Tool bar

Post 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();

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

To Hide Controls Button on Tool bar

Post 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.
Post Reply