Page 2 of 2

Create designer menu ???

Posted: Mon Jul 09, 2007 8:57 am
by Guest
Use the following code:

Code: Select all

            StiReportTreePanelService tree = StiReportTreePanelService.GetService(design);
            StiPanelService service = (tree as StiPanelService);
            if (service.DockingControl.IsVisible)
            {
                ((StiDockingPanel)service.DockingControl.Parent).DoClose(service.DockingControl);
            }
            else
            {
                design.DockingManager.ClosedControls.Remove(service.DockingControl);
                StiDockingPanel dockingPanel = new StiDockingPanel(design.DockingManager);
                dockingPanel.Controls.Add(service.DockingControl);
                dockingPanel.DockPanelToForm(design, service.DockStyle);
            }  
Of course, you may write

Code: Select all

StiDictionaryPanelService
or

Code: Select all

StiPropertiesPanelService
instead

Code: Select all

StiReportTreePanelService
Thank you.

Create designer menu ???

Posted: Tue Jul 24, 2007 3:36 am
by jayakumargr
Hi,
Thanks. It works fine.

In The Same way how to enable and disable show grid,table mode and show rulers ???


Thanks in Advance,
Jayakumar

Create designer menu ???

Posted: Tue Jul 24, 2007 7:44 am
by Guest
You must use following code:

Code: Select all

StiSettings.Set("StiDesigner", "ShowGrid", report.Info.ShowGrid = false);
StiSettings.Set("StiDesigner", "ShowRulers", report.Info.ShowRulers = false);
If you write

Code: Select all

StiSettings.Save();
then your settings save to config file, and will be applied later without any code

Thank you.

Create designer menu ???

Posted: Wed Jul 25, 2007 11:31 pm
by jayakumargr
Hi,
Thanks It Works Fine:biggrin:

Create designer menu ???

Posted: Thu Jul 26, 2007 2:53 am
by Edward
Let us know if you need any help.

Thank you.