Force Designer toolbars visible

Stimulsoft Reports.NET discussion
Post Reply
jamesk
Posts: 23
Joined: Thu Apr 12, 2007 12:47 pm

Force Designer toolbars visible

Post by jamesk »

I have a question regarding the Designer.

I am programmatically opening the Designer within my application as a MDI child. I allow the user to put the MDI children as Tabs. The application appears very similar to SQL Server 2005, in that there is a navigation that is docked on the left side and then all the data is viewed in a tab docked on the right.

When the Designer opens, all the toolbars/menu are hidden and the user can't right click in the toolbar area to select the various toolbar/menu so that they are visible. What is the code so that prior to displaying the Designer as a form, I can make the toolbars/menu visible?

This is how I am displaying the Designer:

Stimulsoft.Report.Design.StiDesigner stDesigner = new Stimulsoft.Report.Design.StiDesigner();
Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

stDesigner.Report = report;
stDesigner.MdiParent = this;
stDesigner.Report.Load(myReport);
stDesigner.Show();

Any suggestions would be appreciated. Thanks
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Force Designer toolbars visible

Post by Vital »

You need use build from 16 May (when it will be available). Please use following code:

Code: Select all

StiOptions.Designer.ShowDesignerControlMainMenu = true;
Stimulsoft.Report.Design.StiDesigner stDesigner = new Stimulsoft.Report.Design.StiDesigner();
stDesigner.RefreshToolbars();
Thank you.
jamesk
Posts: 23
Joined: Thu Apr 12, 2007 12:47 pm

Force Designer toolbars visible

Post by jamesk »

Thanks for getting back to me so quick.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Force Designer toolbars visible

Post by Vital »

Please contact us if you need any help.

jamesk
Posts: 23
Joined: Thu Apr 12, 2007 12:47 pm

Force Designer toolbars visible

Post by jamesk »

This worked great, Is there a way to hide the "New Report" button on the Standard toolbar?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Force Designer toolbars visible

Post by Vital »

You can use following code before start report designer:

Code: Select all

StiStandardToolbarService service = StiStandardToolbarService.GetService();
service.ShowReportNew = false;
For also you can check sample project DesignerManagement from standard delivery.

Thank you.
Post Reply