Customizing FlexViewer for WinForms
A fast, cross-platform report and document viewer for .NET reporting, ComponentOne FlexViewer offers a complete control toolkit that can be used to preview many different document types, including a C1Report, C1FlexReport, SSRS, and PDF documents.
This control offers a Ribbon that consists of standard Ribbon items. At times, you may need to hide these standard buttons or add a custom button in the Ribbon.
How to hide or show standard buttons in ComponentOne FlexViewer
There are two ways to change the visibility of standard buttons:
I. When designing, use RibbonElements collection editor.
Go to the Properties window.
Expand RibbonElements property.
Change the Visible property of the desired ButtonActionElement.
II. At run time, you can use any of the following methods:
- Get an object of ButtonActionElement class from the RibbonElements:
- Get an object of RibbonItem class from the RibbonGroup:
Add custom button(s):
You can add a RibbonItem in the RibbonGroup programmatically:
ComponentOne FlexViewer is available in:
Desktop: WinForms, WPF, and UWP
Web: ASP.NET MVC
Try the fastest way to build high-performing, feature-complete applications.