Posted 27 May 2019, 5:11 am EST
Dear All,
Is there an easy way in VB.NET in FlexViewer to hide all the buttons and select the buttons we want to show like only print button or export buton?
Best regards
Said Nai
Forums Home / ComponentOne / WinForms Edition
Posted by: saidnai on 27 May 2019, 5:11 am EST
Posted 27 May 2019, 5:11 am EST
Dear All,
Is there an easy way in VB.NET in FlexViewer to hide all the buttons and select the buttons we want to show like only print button or export buton?
Best regards
Said Nai
Posted 28 May 2019, 2:32 am EST
Hello Said,
Please use the following lines of code in your application to see only the Print and Export buttons in the FlexViewer ribbon:
c1FlexViewer1.RibbonGroups.View.RibbonGroup.Visible = False
c1FlexViewer1.RibbonGroups.Zoom.RibbonGroup.Visible = False
c1FlexViewer1.RibbonGroups.Navigation.RibbonGroup.Visible = False
c1FlexViewer1.RibbonGroups.Pages.RibbonGroup.Visible = False
c1FlexViewer1.RibbonElements.CopyText.Visible = False
c1FlexViewer1.RibbonElements.SelectTextTool.Visible = False
c1FlexViewer1.RibbonElements.HandTool.Visible = False
c1FlexViewer1.RibbonElements.FindTextTool.Visible = False
This sets the visibility of other ribbon groups and buttons to false.
Let me know if you need further assistance.
Thanks,
Esha
Posted 28 May 2019, 3:33 am EST - Updated 4 October 2022, 1:11 am EST
Dear Esha,
Perfect.
I discovered also that all can be minimized over no 2 as you can see in the attached picture line no 3.
Can you please support with the VB.NET code to get this done.?
I want to open the FV directly like no 3.
Best regards
Said Nai
Posted 28 May 2019, 4:55 am EST
Hi Said,
As per my understanding, you wish to know how 3 from the screenshot can be implemented using VB code. This can be done as follows:
Me.c1FlexViewer1.Ribbon.Minimized = True
The Ribbon can be minimized to achieve that layout.
Regards.
Posted 28 May 2019, 6:05 am EST
Dear Esha,
Perfect. Many Thanks.
Best regards
Said Nai