Create designer menu ???

Stimulsoft Reports.NET discussion
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Create designer menu ???

Post 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.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Create designer menu ???

Post 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
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Create designer menu ???

Post 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.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Create designer menu ???

Post by jayakumargr »

Hi,
Thanks It Works Fine:biggrin:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Create designer menu ???

Post by Edward »

Let us know if you need any help.

Thank you.
Post Reply