Add-In Commands Give Office 2016 Devs More Control

A number of new tools whose capabilities will be deployable in Office client apps in the coming months include add-in command extensibility, and theming and Office.js APIs.

Besides the bevy of tools already available for developers who are making the most of enterprise Microsoft Office app usage, the Office Dev teams blogged about a number of new tools whose capabilities will be deployable in Office client apps in the coming months, including add-in command extensibility, and theming and Office.js APIs.

Add-in commands can now be used to provide add-ins for users via the ribbon. To provide users with a Yelp or Evernote add-in from the ribbon, developers declare them in the add-in manifest in a new VersionOverrides node. (More info on working with the add-in manifest is here.)

Where users just need to respond with a button click to perform an action, such as a simple printing function, developers can use a JavaScript function to run an add-in. For actions that require user input, an add-in button can be added that launches a task pane asking for more information.

Add-ins can also be coded to have the Office 2016 look and feel, via the theming APIs. The Office theme is accessed via the Context.officeTheme property. For more granular developer control, Microsoft also recently announced the Office UI Fabric framework, which is available on Github.

The team has also been working on developing tools that provide for more creative ways to use Word and Excel functions in collaborative working environments, through Office.js APIs. As the APIs are in preview, there's a limited number of functions that can be embedded into other clients. For Word: documents, paragraphs, content controls, header/footer, search, range, sections, selection, pictures and formatting functions. For Excel: named items, worksheets, ranges, formatting, tables, and charts. Snippets for these functions can be accessed through the Office.js Snippets Explorer. You can read more about them here.

About the Author

You Tell 'Em, Readers: If you've read this far, know that Michael Domingo, Visual Studio Magazine Editor in Chief, is here to serve you, dear readers, and wants to get you the information you so richly deserve. What news, content, topics, issues do you want to see covered in Visual Studio Magazine? He's listening at [email protected].

comments powered by Disqus


  • Death of the Dev Machine?

    Here's a takeaway from this week's Ignite 2020 event: An advanced Azure cloud portends the death of the traditional, high-powered dev machine packed with computing, memory and storage components.

  • COVID-19 Is Ignite 2020's Elephant in the Room: 'Frankly, It Sucks'

    As in all things of our new reality, there was no escaping the drastic changes in routine caused by the COVID-19 pandemic during Microsoft's big Ignite 2020 developer/IT pro conference, this week shifted to an online-only event after drawing tens of thousands of in-person attendees in years past.

  • Visual Studio 2019 v16.8 Preview Update Adds Codespaces

    To coincide with the Microsoft Ignite 2020 IT pro/developer event, the Visual Studio dev team shipped a new update, Visual Studio 2019 v16.8 Preview 3.1, with the main attraction being support for cloud-hosted Codespaces, now in a limited beta.

  • Speed Lines Graphic

    New for Blazor: Azure Static Web Apps Support

    With Blazor taking the .NET web development world by storm, one of the first announcements during Microsoft's Ignite 2020 developer/IT event was its new support in Azure Static Web Apps.

  • Entity Framework Core 5 RC1 Is Feature Complete, Ready for Production

    The first release candidate for Entity Framework 5 -- Microsoft's object-database mapper for .NET -- has shipped with a go live license, ready for production.

Upcoming Events