MDI Container Error ???

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

MDI Container Error ???

Post by jayakumargr »

Hi,
i have use StiReport as MDI child in my application.There is no problem in it.while using F5 the following error is occured.

Method:[set_MdiParentInternal]
Form that was specified to be the MdiParent for this form is not an MdiContainer.
Parameter name : value


Currently i used StiReport 2008.2 Source code.

How to solve this Error ??

Thanks in Advance,
Jayakumar

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

MDI Container Error ???

Post by Edward »

Hello, Jayakumar.

Please send test application which reproduces the behavior to support[at]stimulsoft.com for analysis.

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

MDI Container Error ???

Post by jayakumargr »

Hi,

i unable to send the test application to you.But i send the coding details.

i have wrote following coding in form_load event:

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

and also i set the IsMdiContainer property to true;

this.IsMdiContainer = true;

Thanks in Advance,
Jayakumar
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

MDI Container Error ???

Post by jayakumargr »

Hi,Edward.
if you found any solution for this issue? Please let me know the details.

Thanks in advance,
Jayakumar
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

MDI Container Error ???

Post by Edward »

Hi, Jayakumar.

Please call the code in the following order:

Code: Select all

this.IsMdiContainer = true;
StiReport report = new StiReport();
report.Design(this);
Designer will be opened within that form. I checked this code and it worked.

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

MDI Container Error ???

Post by Edward »

Hi, Jayakumar.

Please use the following code:

Code: Select all

StiSelectGuiHelper.IsRibbonGui = false;
StiDesigner.ShowPreviewInMdi = false;
this.IsMdiContainer = true;          
StiReport report = new StiReport();
report.Design(this);
Thank you.
Post Reply