Designer: i don't want to save "View" settings

Stimulsoft Reports.NET discussion
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Designer: i don't want to save "View" settings

Post by Edward »

Hello Fabio.

Starting from prerelease build from December, 1 you can use the following code:

Code: Select all

Dim Service As Stimulsoft.Report.Design.Panels.StiPropertiesPanelService = Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService(designer)
If Not Service.DockingItem.Visible Then
  StiDesignerControl.DockPanelOpen(Service) 
End If
or as follows:

Code: Select all

Stimulsoft.Controls.Win.DotNetBar.BarUtilities.SetDockContainerVisible(service.DockingItem, true);
If service.DockingBar.Items.Contains(service.DockingItem) Then
    service.DockingBar.SelectedDockContainerItem = service.DockingItem 
End If
Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Designer: i don't want to save "View" settings

Post by Fabio Pagano »

Sorry but didn't work.

Version of 1 December 2008, ribbongui interface, trying to make always appear the dictionary panel also if user closed it in last designer:

Code: Select all

Private Sub StiDesigner_LoadedDesigner(ByVal sender As Object, ByVal e As EventArgs)
        
        Dim Service As Stimulsoft.Report.Design.Panels.StiDictionaryPanelService = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService(TryCast(sender, Stimulsoft.Report.Design.StiDesignerControl))
        If Not Service.DockingItem.Visible Then
            Stimulsoft.Report.Design.StiDesignerControl.DockPanelOpen(Service)
        End If

    End Sub
The code is executed, "Service.DockingItem.Visible" property begins with "false", after executing the instruction "Stimulsoft.Report.Design.StiDesignerControl.DockPanelOpen(Service)" the "Service.DockingItem.Visible" property is "true" but the panel doesn't appear in designer anyway.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Designer: i don't want to save "View" settings

Post by Vital »

Hello Fabio,
Fabio wrote: Version of 1 December 2008, ribbongui interface, trying to make always appear the dictionary panel also if user closed it in last designer:
Please get build from 8 Dec. After then use LoadedConfigurationInDesigner event instead LoadedDesigner event.

Thank you.

Larusso
Posts: 32
Joined: Tue May 20, 2008 9:27 am
Location: Poland

Designer: i don't want to save "View" settings

Post by Larusso »

Hi, I have similar problem. Can You tell me where this LoadedConfigurationInDesigner event is? I cannot find it...
Regards
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Designer: i don't want to save "View" settings

Post by Brendan »

Hi Larusso,

You can find the Events in the GlobalEvents class.

Code: Select all

Stimulsoft.Report.StiOptions.Engine.GlobalEvents.LoadedConfigurationInDesigner
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Designer: i don't want to save "View" settings

Post by Jan »

Hello,

Full path to this static event is:

Stimulsoft.Report.StiOptions.Engine.GlobalEvents.LoadedConfigurationInDesigner

Thank you.
Post Reply