Page 1 of 1

Flip Toolbar to Right to Left.

Posted: Thu Oct 30, 2008 5:27 am
by Ajax
link->http://s469.photobucket.com/albums/rr53 ... ol_Bar.jpg

I need to rearrange the icons as shown,can this be done? Any code snippets to do it?

I have code like

#region ToolBar

//Do this operation once when running the program
StiConfig.Load();
//Get service
var config =
StiConfig.Services.GetService(typeof(StiViewerConfigService)) as StiViewerConfigService;
//Turn off all buttons of changes of the rendered report
// config.PageNewEnabled = false;
if (config != null) {
config.CloseEnabled = false;
config.ToolEditorActive = false;
config.ToolEditorEnabled = false;
config.PageDesignEnabled = false;
config.PageDeleteEnabled = false;
config.PageNewEnabled = false;
config.PageSizeEnabled = false;
config.OpenEnabled = false;
config.SaveEnabled = true;

}
//Save configuration if necessary
StiConfig.Save();

#endregion

Can I add something ?

Thanks in advance.

Also do you have a (\Bin\Localization) ar.xml? (arabic)

Flip Toolbar to Right to Left.

Posted: Thu Oct 30, 2008 8:05 am
by Edward
Hello, Ajax.

StiText component has RightToLeft property in "TextOptions" group of properties.

Also there are the following options for Right To Left are available:

Stimulsoft.Report.StiOptions.Preview.RightToLeft = StiRightToLeftType.Yes;

StiPage, StiDataBand has RightToLeft properties as well.

in a viewer control you can set tollbar to be displayed this way as follows:

Code: Select all

stiViewControl1.RightToLeft = RightToLeft.Yes;
please check fa.xml file.

Thank you.