How to Add Custom Option in MS Word File Menu by Office Addin using manifest.xml - ms-word

How can we add a custom option in "File Menu/Tab" by custom "Office Addin"?
I can find how to add "Control" in an office tab using "ExtensionPoint". But I am unable to find how can we add a custom option in "File Menu". Following are the documentation links I have gone through.
https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/extensionpoint
https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/officetab
image 1:
image 2:

The Backstage UI can't be customized with web add-ins. See Add-in commands for Excel, PowerPoint, and Word for more information about possible customizations.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .
FYI these customizations are possible using COM add-ins, so you may also consider creating a VSTO based add-in instead, see Walkthrough: Create your first VSTO Add-in for Outlook.

Related

word add-in debugging task pane app in office online

I recently updated my Microsoft Word task pane add-in and resubmitted it through the seller dashboard. After doing this, I got a document with a set of issues.
Based on the advice in this link (https://learn.microsoft.com/en-us/office/dev/add-ins/testing/debug-add-ins-in-office-online
), I was able to obtain a office 365 developer account.
Now, I am trying to debug my word add-in in office online. I added the local manifest pointing to localhost (https) from Settings->Add-ins->Upload the manifest file.
However, when I open a document and try to load the app, it is not found either in the store or in the admin managed addins.
I am also not finding my existing deployed app format in the office online store.
Can you point me in the right direction to see the app in the office store?
Also, how do I debug the app to fix the issues in office online?
Thanks for your help, I appreciate it.
You can upload your add-in for testing in Word Online by opening the insert tab on the ribbon, clicking Office Add-ins, clicking Upload My Add-in and uploading your manifest file.
Your add-in will appear in the My Add-ins section of the Office Add-ins window, and in the relevant ribbon location (add-in dependent) of the Word Online ribbon.

Dynamic data manipulation in word online

I am trying to build a task-pane add-in for word online which can do mail merge like desktop office. Now I understand that word online does not support mail merge out of the box, so I thought about the following steps -
Create a template (DOTX) using desktop office which will contain Region or something like a merge field etc. Upload the template to one drive.
Open a blank doc and add a task pane add-in in word online. This is temporary step for now.
Click a button on the add-in.
This click will stream the template (DOTX) from server using an app service call.
Render the stream into word online web page.
Edit and save.
Close word online and reopen.
Click the doc link.
This will render the doc in word online.
Add the add-in in the task pane (temp step).
Click edit button.
Call app service to fetch the latest merge data source.
Traverse through the word xml and replace the values corresponding to the region or special keys.
Re-render the doc.
My users will have E1 subscription of office 365.
Is this thought process logical and achievable with word online? Thanks in advance!...
I think your approach is much more complicated than it needs to be. Word Online supports Add-ins created using the JavaScript APIs, as supported by the information in this article: https://msdn.microsoft.com/EN-US/library/office/dn833104.aspx
It should be possible for you to create the "template" on the Desktop (Word 2013 or 2016 is required - but only 2016 supports the current full scope of the JS API) and "insert" your add-in, which links it to the document. Opening the document in Word online should automatically load the add-in, that can then link to the data source and fill in the data.
As data targets ("merge fields"), I recommend you use Content Controls.

Office add-in for save location

When you open office 2013 and click "Open", you have 3 choices by default (Recent, OneDrive and Computer) and the possibility to "Add a Place".
I would like to create a add-in to add a custom place...
See, I develop a Electronic Document Manager software, and I provide a add-in to office suit, this would be another feature of the add-in.
Instead of "saving-locally-and-uploading-the-file-to-the-site" and/or "downloading-document-and-read", the user would just open and/or save to the site... I would use the Save/Open event to check if everything is right and the user has access and etc...
It kind of depends what you mean by 'office add-in'. Microsoft rather confusingly renamed the modern 'office store apps' to 'add-ins' at the Build 2015 event. However we also still have the old style VSTO 'add ins'.
If you mean a modern store add-in, then no, those only have limited access to read/edit the document via the office JS library.
If you mean the old style VSTO add-in, then I am not sure.

Word 2010 : Automatically populate Backstage tab from Folder

We're about to move from Office 2000 to 2010 and are looking at how best to provide our templates to users.
What I want to do is replace the Office.com templates with our own.
Looking at the documentation and Technet blogs I see that we can either create or amend the tabs in the Backstage view, but I am trying to find out if we can do this in a relatively hands-off manner.
Our templates are stored on a network server, with subfolders grouping similar templates. Whilst we could point Workgroup templates at the root folder and get the My Templates dialog, this feels like a step back.
1) Can we create a backstage tab (or replace the New tab)
2) Can we set this tab up to automatically display the templates that are in the folder and use the subfolders to sort the templates? Such that if a new template is added to a folder we do not need to roll out a new version of the backstage
Of course the Office 2010 File New Backstage is not very appropriate for a corporate environment.
To disable the "Templates from Office.com" you can use a Windows Group Policy (the option is named "Disable template downloads from the client and from Office.com").
However, you'll find in the File New Backstage still the entry for "Sample Templates". These templates cannot be uninstalled. Find detailed information on this page on the Word MVPS site.
Your question 1:
Yes, you can create a new Backstage Tab, or hide the Word File New tab (you'll need both) throug an add-in.
Your question 2:
If you want to mimic the Pre-Office 2007 FileNew dialogs, you must also recurr to an add-in which does exactly what you need. For example, read the files from a network share and display them in the Backstage view. However, the File New replacements I've developed in the last years did recurr to a configuration file, because you have the possbility to display additional information for the users, e.g. about the use of the template, or about differences (between "Legal Opinion small" and "Legal Opinion large" etc.). Administration of a config file is also "hands-on" without problems.
At least in Word there is one other option:
On the Quick access toolbar you can put another "New from Template" icon (I don't know what it is exactly called anymore, but it is there in the selection of icon from Microsoft) which opens up straight the Pop up window with all your templates without going trough the ridiculous long winded process via the Backstage.

Excel VSTO Addin not handling commandbarbutton.click event

I am developing an Excel VSTO C# add-in. The add-in has a single command-bar ribbon with 1 command-bar-button.
the purpose of this button is to
open a dialog window that allows search dates to be entered
then calls off to a web-service to retrieve data, which gets populated in the spreadsheet.
The problem is that after the install of the add-in it all works as expected. however after shutting down excel, then reopening it later, the click event on the command-bar-button is no longer handled or is not firing.
The VSTO addin is installed from a network location.
If your add-in targets Excel 2007, and doesn't require to be installed on Excel 2003, there is no reason to use CommandBar buttons - use the Ribbon. It will make your development easier, and will look better, too. If you already use Excel 2007 to open and work with the Excel 2003 document and this hasn't caused problems, doing the same via VSTO should not introduce problems.
There are plenty of tutorials on how to use the Ribbon; I have one post on my blog showing how to add a button to the Ribbon to trigger some action: http://www.clear-lines.com/blog/post/create-excel-2007-vsto-add-in-ribbon.aspx