Office Add-in Development Community (PnP) – March 2020 update
The Office Add-ins platform team has new updates to share this month on Office Add-ins Patterns and Practices. PnP is a community effort, so if you are interested in contributing, see our good first issue list.
Use a shared library to migrate your Visual Studio Tools for Office Add-in to an Office web add-in
- Try the code: Use a shared library to migrate your Visual Studio Tools for Office add-in to an Office web add-in
- Read the Tutorial: Share code between both a VSTO Add-in and an Office add-in with a shared code library
Manage ribbon and task pane UI, and run code on doc open
This sample shows how to create contextual ribbon buttons that are enabled based on the state of your add-in. It also shows how to use the Office.js API to show or hide the task pane. This sample also demonstrates how to run code when the task pane is closed, such as on document open.
- Try the code: Manage ribbon and task pane UI, and run code on doc open
Share global data with a shared runtime
This sample shows how to set up a basic project that uses the shared runtime. The shared runtime runs all parts of the Excel add-in (ribbon buttons, task pane, custom functions) in a single browser runtime. This makes it easy to share data through local storage, or through global variables.
- Try the code: Share global data with a shared runtime
Contributors from Microsoft
Here’s the list of Microsoft people who have been closely involved with the PnP work last month.
- Jeremy Yoo @jeremy-msft
- David Chesnut @davidchesnut
Want to contribute?
PnP is a community effort by developers like you. Check out our good first issue list as a great place to help with some samples. Feel free to contribute to existing samples or create new ones. Sharing is caring!
About Office Add-ins Patterns & Practices (PnP)
Office Add-ins PnP is a Microsoft-led, community driven effort that helps developers extend, build, and provision customizations on the Office platform the right way by providing guidance and help through official documentation and open source initiatives. The source is maintained in GitHub where anyone can participate. You can provide contributions to the samples, reusable components, and documentation. Office Add-ins PnP is owned and coordinated by Office engineering teams, but the work is done by the community for the community.
You can find code samples for Office Add-in development in the Office Add-ins PnP repo. Some samples are also documented in the Office Add-ins docs, such as Batching custom function calls for a remote service.
Office Add-ins PnP and SharePoint PnP are both related community driven efforts. SharePoint PnP provides community solutions for developers building on SharePoint. For more information about SharePoint PnP, see https://docs.microsoft.com/en-us/sharepoint/dev/community/community
- Get started with Office development by joining the Office 365 developer program.
- Try out some samples and get coding quickly with Office add-ins by downloading Script lab.
Learn more by joining the monthly Office Add-ins community call.