i've embedded your engine report in a MDI form with Office2007 ribbonbar instead of a strip toolbar, with the following code:
Code: Select all
Stimulsoft.Report.StiReport newReport = new Stimulsoft.Report.StiReport();
this.newReport.AutoLocalizeReportOnRun = true;
SqlConnection connection = new SqlConnection(myConnectionString);
this.newReport.RegData("myConnectionSource", connection);
this.newReport.Dictionary.Synchronize();
newReport.Design(this);
On closing the designer form, the following exception is thrown:
how to avoid/fix it?
System.NullReferenceException
Source=Stimulsoft.Report
StackTrace:
in Stimulsoft.Report.Design.Toolbars.StiToolbarService.GetToolbarServices(StiDesigner designer)
in Stimulsoft.Report.Design.StiToolbarOrderHelper.OrderToolbars(StiDesigner designer)
in Stimulsoft.Report.Design.StiDesigner.OnOrderToolbarsClick(Object sender, EventArgs e)
in Stimulsoft.Report.Design.StiDesigner.InvokeOrderToolbars()
in Stimulsoft.Report.Design.StiDesigner.OnSizeChanged(EventArgs e)
in System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
in System.Windows.Forms.Control.UpdateBounds()
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ContainerControl.WndProc(Message& m)
in System.Windows.Forms.Form.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
thanks in advance...