Page 1 of 1

Force Designer toolbars visible

Posted: Mon May 14, 2007 11:24 am
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

Force Designer toolbars visible

Posted: Mon May 14, 2007 3:46 pm
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.

Force Designer toolbars visible

Posted: Mon May 14, 2007 4:06 pm
by jamesk
Thanks for getting back to me so quick.

Force Designer toolbars visible

Posted: Mon May 14, 2007 4:38 pm
by Vital
Please contact us if you need any help.


Force Designer toolbars visible

Posted: Fri May 18, 2007 6:21 pm
by jamesk
This worked great, Is there a way to hide the "New Report" button on the Standard toolbar?

Force Designer toolbars visible

Posted: Sat May 19, 2007 3:00 am
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.