How to change the visibility of ToolBarButtons from OlapClient Tool Bar
The ToolBar buttons visibility can be changed using the below code snippet.
C#
void olapClient1_Loaded(object sender, RoutedEventArgs e)
{
this.olapClient1.OlapClientToolBar.ShowAddReportButton = false;
this.olapClient1.OlapClientToolBar.ShowConnectOptionButton = true;
this.olapClient1.OlapClientToolBar.ShowExecuteButton = false;
this.olapClient1.OlapClientToolBar.ShowExpandersButton = true;
this.olapClient1.OlapClientToolBar.ShowFilterColumnButton = false;
this.olapClient1.OlapClientToolBar.ShowFilterRowButton = true;
this.olapClient1.OlapClientToolBar.ShowFilterSortButtons = false;
this.olapClient1.OlapClientToolBar.ShowLoadReportButton = true;
this.olapClient1.OlapClientToolBar.ShowMdxButton = false;
this.olapClient1.OlapClientToolBar.ShowNewReportButton = true;
this.olapClient1.OlapClientToolBar.ShowRemoveReportButton = false;
this.olapClient1.OlapClientToolBar.ShowRenameReportButton = true;
this.olapClient1.OlapClientToolBar.ShowReportButtons = false;
this.olapClient1.OlapClientToolBar.ShowReportList = true;
this.olapClient1.OlapClientToolBar.ShowSaveAsReportButton = false;
this.olapClient1.OlapClientToolBar.ShowSaveReportButton = true;
this.olapClient1.OlapClientToolBar.ShowSortingColumnButton = false;
this.olapClient1.OlapClientToolBar.ShowSortingRowButton = true;
this.olapClient1.OlapClientToolBar.ShowToggleButton = false;
}