I am looking for how to modify the state of office app addin command,but get no results.Can anyone tell me is it possible to dynamically disable or hide the addin command button in Office ribbon after being loaded.It seems the Manifest file only load initially,and can't be changed after that? Thank you!
No. At present, the add-in command button only control by the menifest. It is not able to disable dynamically. You can submit the feedback from here if you require this feature.
As a workaround, you may also consider developing an VSTO add-in. However it only works for the Windows platform. Here is an helpful thread.
Related
I tried searching for this question but couldn't really find a similar problem.
I have an excel file in which I created a custom ribbon tab and made copies of this file.
Image of the tab
In some of those copies, the tab has gone missing. I was earlier using Excel 2016 and recently migrated to Microsoft 365 and downloaded the latest version of Office. I am not sure if this is causing the problem since some files do still have the custom ribbon.
Thanks a lot for your help in advance.
Regards
Do you get any UI errors when the tab is missed?
By default, if an add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear.
To show VSTO Add-in user interface errors you need:
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK.
If you deal with documents with embedded customizations, make sure the protected mode is off when the document is opened. See What is Protected View? for more information.
I am creating an Office 365 plugin for Excel using Angular. I use Office-JS library to interact with Excel. My plugin appears in the Excel task-pane.
I want to know that my add-in is open/close in task-pane via code, I want to know as I need to solve some issue related to this in my add-in.
Unfortunately our API doesn't provide the event for Taskpane open/close. which is a known feature gap.
So would you please provide us feedback via https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback?category_id=163563 and upvote for this feature. Thanks for your support.
I am learning Office add-n and have just been practicing to make a button in excel. I can't show the new button in the excel ribbon even copy and run the complete add-in project from GitHub. Can anyone help?
Best regards
Tuan
You need to make sure the following applies:
Office Desktop products must be versioned 16 or higher
In your XML, you need to make sure that you are making all HttpS requests. It must be secure
Make sure that you are not missing any closing tag />.
Also you should be able to see the changes on 365 since they are using the latest version.
I'm trying out the new style JavaScript based office add-ins and can't see how I can add the add-in launcher button to the ribbon.
I know that Command add-ins which can add tabs etc are not released yet, I'm just talking about a button that will launch my add-in.
It's a TaskPaneApp.
It seems to be possible because (in my version of office 16 at least) I can see that under the Insert tab, Wikipedia add-in has it own button in the Add-In group.
Currently I've just added a Shared Drive as a trusted location and am launching the app from there. As this is an internal app, it's likely to stay there.
Thanks
You just need to add some elements to your manifest file:
https://msdn.microsoft.com/EN-US/library/office/mt621545.aspx
Make sure you are using the latest version of Word, Excel or PowerPoint; it must be 16 or higher.
Also, make sure to use HTTPS requests.
The XML manifest is super sensitive.
Look for closing /> for all the tags, because you might be missing them somewhere.
You could also use this NPM module which is supported by Microsoft to validate your XML file.
I am tasked with upgrading a current add-in, and creating a new add-in for Office Excel. The requirements dictate that these solutions be implemented as application level add-ins as opposed to document-level. Each solution is isolated in a separate group within the same proprietary tab on the Office Ribbon.
Is is possible to have multiple application-level add-in solutions or must these be contained within one Visual Studio solution. If they must be contained within a single solution what would be the best practice for tabling (and hiding from the end-user) the solution that is still a work in progress? \
---APPEND---
To clarify, I will define each programmatic entity to be accomplished as a task. Each task is contained within a single group on the Ribbon. All tasks/groups are on the same custom ribbon "tab". How do I release these projects individually to end-users? I should be able to release Task-A to to end-users without worry about the status of Task-B even though they are on the same ribbon tab?
There is no issue in having all the application addin under single solution, I preferred to have it in a single solution in my projects.
With regards to hiding from the end user, if you are going for Click once deployment then just publish the addins which are ready for release. Even if you go for MSI you should be able to do the same by deploying only the addins which are ready to release.
You could also hide the ribbon tabs if they are not completed yet. Hope this answers your question.
Reply to your Appended Question:
In our project we just hide the buttons from the ribbon by setting Visible = False so that the QA or enduser could not be able to see this hidden button. Eventhough there is unfinished/untested code they are never invoked.