How to make Mdi child Menubar Visible???

Stimulsoft Reports.NET discussion
Post Reply
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to make Mdi child Menubar Visible???

Post 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




Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to make Mdi child Menubar Visible???

Post 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.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How to make Mdi child Menubar Visible???

Post by Vital »

Can you show me full error stack?

Thank you.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to make Mdi child Menubar Visible???

Post 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

Post Reply