Hide unit selection in status bar of stiRibbonDesignerControl

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by munich »

Hello,

I would like to hide the unit selection (drop down) in status bar of stiRibbonDesignerControl. How can this be done?

Thanks for any help.

Yours
munich
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by Jan »

Hello Munich,

You can use following code:

Code: Select all

Stimulsoft.Report.Design.Toolbars.StiStatusBarService service = Stimulsoft.Report.Design.Toolbars.StiStatusBarService.GetService();
service.ShowUnits = false;
Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by munich »

Hello Jan,

sorry, but the dropdown with the units is still visible.

I use your code right before I call

Code: Select all

stiReport.Design();
What did I do wrong?

Regards
munich
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by Edward »

Hi Munich,

The issue is confirmed. We will inform you when the issue is fixed.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by Edward »

Hi Munich,

The issue is fixed and the patch will be available in the next prerelease build on Monday.

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by munich »

Dear Edward,

I am using patch SR_2010.01.04_R2005. But the dropdown with the units is still visible in status bar when I use

Code: Select all

stiReport.Design();
or use stiRibbonDesignerControl on a form.

What did I do wrong?

Yours
munich
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by Edward »

Hi Munich,

Could you please explain briefly how designer was being used?

And the code above you had to to use before the designer had been created.

And in the build from 11th of January the following options will be available:

StiOptions.Designer.Toolbars.StatusBar.ShowUnits
StiOptions.Designer.Toolbars.StatusBar.ShowComponentName
StiOptions.Designer.Toolbars.StatusBar.ShowLocation

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by munich »

Dear Edward,

the property

Code: Select all

StiOptions.Designer.Toolbars.StatusBar.ShowUnits
works fine. Now the dropdown with the units disappears in status bar setting the property to false.

This is the code sequence that did and does not work:

Code: Select all

Stimulsoft.Report.Design.Toolbars.StiStatusBarService barService = Stimulsoft.Report.Design.Toolbars.StiStatusBarService.GetService();
barService.ShowUnits = false;
StiReport report = new StiReport();
report.Design();
I thank you very much for your help.

Yours
munich
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide unit selection in status bar of stiRibbonDesignerControl

Post by Edward »

Hi Munich,

We will check it and let you know our results.

Thank you.
Post Reply