Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / WPF

Hide Report Group Tree in WPF

5.00/5 (1 vote)
9 Oct 2011CPOL 7.9K  
Using the SAPBusinessObjects.WPF.Viewer.dll, the property ShowGroupTree is not available.To Hide the GroupTree as a default, set the property .ToggleSidePanel to SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None.e.g.With _viewer .IsEnabled = True ...
Using the SAPBusinessObjects.WPF.Viewer.dll, the property ShowGroupTree is not available.
To Hide the GroupTree as a default, set the property .ToggleSidePanel to SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None.

e.g.

VB
With _viewer
       .IsEnabled = True
       .EnableToolTips = True
       .ShowOpenFileButton = False
       .ShowExportButton = True
       .ShowNextPageButton = True
       .ShowPrevPageButton = True
       .ShowPrintButton = True
       .ShowToggleSidePanelButton = True
       .ShowSearchTextButton = True
       .ToggleSidePanel = SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None
       .ShowRefreshButton = True
       .ShowGoToPageButton = True
       .ViewerCore.ReportSource = _report
      End With

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)