Exception with StiPage.DesignPage method

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Exception with StiPage.DesignPage method

Post by munich »

Hello,

I run the following code:

Code: Select all

StiReport rep = new StiReport();
StiPage page = rep.Pages[0];
page.DesignPage();
page.DesignPage();
page.DesignPage();
page.DesignPage();
Each time the designer opens I close it immediately. Third time I close the designer I get a System.ArgumentOutOfRangeException. Sometimes this happens right after closing designer the second time.

This is the stack trace:
bei System.Collections.CollectionBase.System.Collections.IList.set_Item(Int32 index, Object value)
bei Stimulsoft.Report.Components.StiPagesCollection.set_Item(Int32 index, StiPage value)
bei Stimulsoft.Report.Components.StiPage.DesignPage(StiGuiMode guiMode)
bei Stimulsoft.Report.Components.StiPage.DesignPage()
bei TestApplikation2.Start.buttonTest_Click(Object sender, EventArgs e) in C:\VS2008\KSR_BusinessFramework\TestApplikation2\Start.cs:Zeile 87.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I normally do not call DesignPage() immediately one time after an other several times. But I often receive this exception closing designer after calling DesignPage(). So this is just a way to reproduce the exception.

Can you help me with this issue?

Thanks in advance for any help.

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

Exception with StiPage.DesignPage method

Post by Edward »

Hi Munich,

Thanks a lot for this bug, we will inform you about our progress.

Thank you.
Post Reply