MDI Application Sample?
-
- Posts: 37
- Joined: Tue Jun 13, 2006 8:59 am
- Location: Yorkshire, UK
MDI Application Sample?
Is there a sample application showing the use of StimulReport in an MDI application?
MDI Application Sample?
I use the following code which link to an menuitem on an MDI. I also disable the standard menu and save it to a file then load just before I create the report form.
Hope this help.
Hope this help.
Code: Select all
private void OnClickNew(object sender, EventArgs e)
{
StiConfig.Load(@"C:\Report\ReportNoMenuFullConfig.xml");
StiReport report = new StiReport();
report.Design(this);
report.Designer.FormBorderStyle = FormBorderStyle.Sizable;
report.Designer.WindowState = FormWindowState.Normal;
}
-
- Posts: 37
- Joined: Tue Jun 13, 2006 8:59 am
- Location: Yorkshire, UK
MDI Application Sample?
Hi lcruiser -
Many thanks. I'd seen a problem with the MDI 'master' window gaining too many maximize/minimize/close icons when activating the report preview window and your suggestion fixed it. Looks like I'm good to go once I've nuked the default main menu service.
Many thanks. I'd seen a problem with the MDI 'master' window gaining too many maximize/minimize/close icons when activating the report preview window and your suggestion fixed it. Looks like I'm good to go once I've nuked the default main menu service.
MDI Application Sample?
You can use one of property of StiMainMenu service for control MainMenu type:
Thank you.
Code: Select all
StiMainMenuService mainMenu = StiConfig.Services.GetService(typeof(StiMainMenuService)) as StiMainMenuService;
mainMenu.MainMenuType = StiMainMenuType.Enhanced;
mainMenu.MainMenuType = StiMainMenuType.Standard;