statusbar preview in designer
statusbar preview in designer
Hello
In your windows forms designer, in the preview you have a statusbar where you are showing pages, check for issues, refresh and zoom factors. How can I get the same bar. I only am able to show the pagination (StiDesignerControl1.DesignerPreviewControl.ViewerControl.ShowStatusBar = True) and/or the statusbar (StiDesignerControl1.ShowRibbonStatusBar = True), but not the combined one.
Thanks
Paul
In your windows forms designer, in the preview you have a statusbar where you are showing pages, check for issues, refresh and zoom factors. How can I get the same bar. I only am able to show the pagination (StiDesignerControl1.DesignerPreviewControl.ViewerControl.ShowStatusBar = True) and/or the statusbar (StiDesignerControl1.ShowRibbonStatusBar = True), but not the combined one.
Thanks
Paul
-
- Posts: 5860
- Joined: Tue Mar 20, 2018 5:34 am
Re: statusbar preview in designer
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Re: statusbar preview in designer
In the statusbar of your winforms editor you have a statusbar. I would like to have that statusbar integrated in my application using the (winforms) stidesignercontrol. How can I get that. Please look at the picture (pages/issues/refres/zoom factor).
Thank you
Paul
Thank you
Paul
-
- Posts: 5860
- Joined: Tue Mar 20, 2018 5:34 am
Re: statusbar preview in designer
Hello,
You can use the following code for the StiDesignerControl:
designer.ShowToolbarStatusBar = false;
designer.ShowRibbonStatusBar = true;
Thank you.
You can use the following code for the StiDesignerControl:
designer.ShowToolbarStatusBar = false;
designer.ShowRibbonStatusBar = true;
Thank you.
Re: statusbar preview in designer
Hello,
If I use:
designer.ShowToolbarStatusBar = false;
designer.ShowRibbonStatusBar = true;
I will not get the page navigation, and refresh button as you can see in the picture below
Thanks
Paul
If I use:
designer.ShowToolbarStatusBar = false;
designer.ShowRibbonStatusBar = true;
I will not get the page navigation, and refresh button as you can see in the picture below
Thanks
Paul
Re: statusbar preview in designer
Ok, I have found a workaround:
It will place the reportchecker in the statusbar of the viewer. It is probably not the cleanest way, but it works.
However, I cannot find the refresh button in the document object model of the designer. For now I fixed it by automatically refresh the report if the dictionary is changed.
Thanks
Paul
Code: Select all
Private Sub StiDesignerControl1_RebuildDesigner(sender As Object, e As EventArgs) Handles StiDesignerControl1.RebuildDesigner
StiDesignerControl1.DesignerPreviewControl.ViewerControl.ShowStatusBar = True
If DirectCast(StiDesignerControl1.Controls("bar1"), Stimulsoft.Controls.Win.DotNetBar.Bar).Items.Contains("sbpReportChecker") Then
DirectCast(StiDesignerControl1.DesignerPreviewControl.ViewerControl.Controls("StiViewerControl").Controls("panelView").Controls("tbStatusbar"), Stimulsoft.Controls.Win.DotNetBar.Bar).Items.Add(
DirectCast(StiDesignerControl1.Controls("bar1"), Stimulsoft.Controls.Win.DotNetBar.Bar).Items("sbpReportChecker"), 1)
End If
End Sub
Private Sub StiDesignerControl1_RefreshDictionary(sender As Object, e As EventArgs) Handles StiDesignerControl1.RefreshDictionary
If StiDesignerControl1.DesignerPreviewControl.Visible Then
StiDesignerControl1.DesignerPreviewControl.DoRefresh()
End If
End Sub
However, I cannot find the refresh button in the document object model of the designer. For now I fixed it by automatically refresh the report if the dictionary is changed.
Thanks
Paul
-
- Posts: 5860
- Joined: Tue Mar 20, 2018 5:34 am
Re: statusbar preview in designer
Hello Paul,
Thank you for the information.
Thank you for the information.