Page 1 of 1

How to make Mdi child Menubar Visible???

Posted: Tue Jul 03, 2007 8:56 am
by jayakumargr
Hai,

I am programmatically opening the Designer within my application as a MDI child. I allow the user to put the MDI children as Tabs. Mdi Parent also have menubar and toolbars.
When the Designer opens, menubar is hidden. What is the code so that prior to displaying the Designer as a form, how can i make menubar visible?

This is how I am displaying the Designer:(stimulsoft 2007.1)

StiReport report = new StiReport();
report.Design(this);

i tried following,

StiOptions.Designer.ShowDesignerControlMainMenu = true;
Stimulsoft.Report.Design.StiDesigner stDesigner = new Stimulsoft.Report.Design.StiDesigner();
stDesigner.RefreshToolbars();

but it shows an error...!!!

Please provide the solutions...


Thanks in advance,
Jayakumar





How to make Mdi child Menubar Visible???

Posted: Wed Jul 04, 2007 9:31 am
by Edward
Please modify your code as following:

Code: Select all

StiReport report = new StiReport();
report.Design(this);

StiOptions.Designer.ShowDesignerControlMainMenu = true;
Stimulsoft.Report.Design.StiDesigner stDesigner = new Stimulsoft.Report.Design.StiDesigner();
stDesigner.Report = report;
stDesigner.RefreshToolbars();
Thank you.

How to make Mdi child Menubar Visible???

Posted: Wed Jul 04, 2007 10:31 am
by Vital
Can you show me full error stack?

Thank you.

How to make Mdi child Menubar Visible???

Posted: Wed Jul 04, 2007 11:34 am
by jayakumargr
Hai,
I got it. i use following lines,

StiReport rpt = new StiReport();
StiDesigner design = new StiDesigner(rpt);
this.Menu=design.Menu;


It works fine.


Thanks,
Jayakumar