I'm having a problem getting my buttons to show up.
Code: Select all
StiStandardToolbarService stdToolbar = StiStandardToolbarService.GetService(Designer);
stdToolbar.AddToolButton(this.imageList1, 17, "Open Report..", new System.EventHandler (this.mbiFileNewReport_Activate));
Additionally, I'm seeing a crash when the application closes, even when my toolbutton is not installed:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Stimulsoft.Report.Design.Toolbars.StiToolbarService.GetToolbarServices(StiDesigner designer)
at Stimulsoft.Report.Design.StiToolbarOrderHelper.OrderToolbars(StiDesigner designer)
at Stimulsoft.Report.Design.StiDesigner.OnOrderToolbarsClick(Object sender, EventArgs e)
at Stimulsoft.Report.Design.StiDesigner.InvokeOrderToolbars()
at Stimulsoft.Report.Design.StiDesigner.OnSizeChanged(EventArgs e)