How to hide or add ribbon tabs in code?

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
MarkusWildner
User
Posts: 2
Joined: Tue Sep 19, 2023 1:42 pm

How to hide or add ribbon tabs in code?

Post by MarkusWildner »

Hi dear colleagues,

i have to implement the pdf-Exchange editor sdk to our solution coded in vb.net.
After some hours of reading the docs and trying to get the sdk samples to run I'm on a good starting point . Now I have this problem to customize the ribbon menue for our users. I have to show or hide specifig tabs at runtime, because our users only need a small amount of the functionality of this amazing tool. I tried already with .Net Methods like:

AxPXV_Ctrl.Inst.ShowRibbonTab("Home", False)
but with no success.
I searched enums in the Docs for the ribbontabs to call
AxPXV_Ctrl.Inst.ShowRibbonTab2((int)[Enum of the tab], False)
but also no success. Is there anyone, who can help me out with some codesnippet or a hint in a given documentation or tutorial ?

thanks in advance
Markus
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: How to hide or add ribbon tabs in code?

Post by Tracker Supp-Stefan »

Hello MarkusWildner,

The easiest will likely be to have a copy of the end user editor, customize the UI to what you would want to use in your project, and then load the settings from the previously saved file - and that should affect all ribbon tabs and the tools on them as well:
https://sdkhelp.pdf-xchange.com/vi ... ngs_import

And here is another topic where you can see some sample code on how to use the settings import:
viewtopic.php?p=138879#p138879

Kind regards,
Stefan
MarkusWildner
User
Posts: 2
Joined: Tue Sep 19, 2023 1:42 pm

Re: How to hide or add ribbon tabs in code?

Post by MarkusWildner »

Tracker Supp-Stefan wrote: Wed Sep 20, 2023 11:24 am Hello MarkusWildner,

The easiest will likely be to have a copy of the end user editor, customize the UI to what you would want to use in your project, and then load the settings from the previously saved file - and that should affect all ribbon tabs and the tools on them as well:
https://sdkhelp.pdf-xchange.com/vi ... ngs_import

And here is another topic where you can see some sample code on how to use the settings import:
viewtopic.php?p=138879#p138879

Kind regards,
Stefan

Thank you Stefan , i will give it a try

greetings
Markus
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

How to hide or add ribbon tabs in code?

Post by Tracker Supp-Stefan »

:)