Search code examples
c#activereports

MainBar is Obsolete Active Reports


I'm working in ActiveReports Version 7.0 in which, when i customize the ToolBar i'm getting a warning.

//Code

ReportViewer.Toolbar.MainBar.Items.RemoveAt(2);

Warning:

GrapeCity.ActiveReports.Viewer.Win.Viewer.ViewerToolbar.MainBar' is obsolete: Use ToolStrip property instead

Where am i supposed to use the ToolStrip property? Kindly help


Solution

  • thank you for using ActiveReports

    Here is the viewer customization topic and list of toolbar items here

    Toolstrip is a member of the viewer toolbar

    To access it use viewer1.Toolbar.Toolstrip and it returns a standard windows forms Toolstrip instance.

    Hope this helps.