<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Peter Ombwa on Medium]]></title>
        <description><![CDATA[Stories by Peter Ombwa on Medium]]></description>
        <link>https://medium.com/@peterombwa?source=rss-5778fb146711------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n2R49lPSSi3JUGP99AxV7Q.jpeg</url>
            <title>Stories by Peter Ombwa on Medium</title>
            <link>https://medium.com/@peterombwa?source=rss-5778fb146711------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:58:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peterombwa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A brief Overview of Office Add-ins]]></title>
            <link>https://medium.com/@peterombwa/a-brief-overview-of-office-add-ins-834c03cbd61?source=rss-5778fb146711------2</link>
            <guid isPermaLink="false">https://medium.com/p/834c03cbd61</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[office-365]]></category>
            <dc:creator><![CDATA[Peter Ombwa]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 18:07:11 GMT</pubDate>
            <atom:updated>2017-07-03T20:33:12.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAbsn2EzSSErbUXon_z80Q.jpeg" /></figure><p>When I first started writing Office Add-in’s, the biggest questions that crossed my mind was the difference between Office Add-ins and Office Apps and how to write, test and deploy these Add-ins. Well, that’s the clarification that I hope to make in this post and make it clear for anybody wanting to write Office Add-ins going forward.</p><h3><strong>History</strong></h3><p>In 2012, a few weeks after announcing Office and SharePoint 2013, Microsoft released Napa (preview) and Office Developer Tools for Visual Studio 2012 (preview) which would enable developers build apps for Office.</p><p><strong>Napa</strong> was a lightweight browser based companion for Visual Studio that provided developers with templates for Office and SharePoint App’s and allowed them to write code on the browser.</p><p><strong>Microsoft Office Developer Tools</strong> is an extension that integrates with Visual Studio to provide a rich environment for building Office Apps. It provides templates, designers and an environment to write, build, debug and test Office and SharePoint Add-ins. It also supports the new Cloud App Model, VSTO Add-ins and SharePoint Solutions.</p><p>In 2015, Microsoft renamed Office Apps to Office Add-ins</p><p>In 2017, Napa was discontinued.</p><h3><strong>Overview</strong></h3><p><strong>What’s and Office Add-in</strong></p><p>In a nutshell, an Office Add-in is a Web App (HTML + JS) that runs in an Office client (both desktop and online) and can be used to interact with the contents of an Office client i.e. document for word, mail item for outlook, workbook for excel etc using Office JavaScript API.</p><p><strong>Why Office Add-in</strong></p><p>Primarily, office add-ins are used to extent Office native UI such as ribbons and tabs and also to provide interactive UI components and custom logic through HTML and JS that can extra functionality to Office that doesn’t exist.</p><p><strong>Core Components of an Office Add-in</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*M4EbVZrZ-J34yoWxz6nDbw.png" /><figcaption>Office Add-in Overview</figcaption></figure><ol><li><em>Manifest.xml </em><br>An XML file that tells an Office client where the app is located and how it should load it. Generally, the manifest.xml does 5 critical roles:<br>- Describes the Office Add-in by specifying the id, version of the add-in, description, display name and default locale<br>- Explicitly states how the Add-in will integrate with an Office client such as defining the custom UI components.<br>- Specifies the requested dimensions of the Add-in<br>- Declare the Add-in permissions<br>- Define the rules for the context in which the Add-in is loaded and interact with the currently open document.</li><li><em>Web App </em><br>A web based application that can be hosted anywhere in a web server and provides the logic of your Add-in. It can be written in both client side technologies (Angular, React, etc.) and server side technologies (ASP.Net MVC).<br>The web app must reference a JavaScript API (<strong>Office.js</strong>) in its index.html in order to interact with the object models in Office clients.</li><li><em>Office Application/ Client</em><br>An Office app (Word, Excel, PowerPoint, Outlook etc.) that host’s your Office Add-in</li><li><em>Office Add-in</em> = <em>Manifest.xml </em>+ <em>Web App</em></li></ol><p><strong>JavaScript API Object Models</strong></p><p>Office.js library which can be gotten from nuget package manager exposes object models which can be used to interact with Office clients and their contents through the web app.</p><p>The object models are generally divided into two broad categories:-</p><ol><li><em>Common API<br></em>This was introduced with Office 2013 and exposes APIs that are specific to Office clients and applicable in multiple Office clients i.e. everything exposed through the Office alias provides objects that can be used to manipulate Office documents, workbooks, presentations, mail items and projects</li><li><em>Host Specific API<br></em>Was introduced with Office 2016 and provides host specific strongly-typed objects that represents familiar objects within Office clients. It’s currently available for Word and Excel and its set as the future of Office JavaScript API.</li></ol><h3><strong>Types of Office Add-in</strong></h3><p>Office Add-ins can generally be classified in three broad categories based on how and where they render their contents.</p><p><strong><em>Content App</em></strong><em><br></em>They integrate web-based components such as videos, visualizations, maps in line to a document. They are very common with Excel Add-ins and are added from the insert tab in the Office client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*GgX_CONIxhjs5it6bnHatQ.png" /><figcaption>Office Add-in Content App</figcaption></figure><p><strong><em>Task Pane App</em></strong><em><br></em>Are loaded side by side with the currently open Office document and allow for one on one interaction between the Office document and Office add-in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*kIz893I9eGxJiDhwsPCOWg.png" /><figcaption>Office Add-in Task Pane App</figcaption></figure><p><strong><em>Mail App</em></strong><em><br></em>Displays the Add-in next to the currently viewed outlook items such as email, meeting request, meeting cancellation, meeting response and meeting appointment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*pIMDbbYYMn9-17IBwytryg.png" /><figcaption>Office Add-in Mail App</figcaption></figure><h3><strong>Tools to write Office Add-in</strong></h3><p>Following the discontinuation of NAPA tools, Office Add-ins can be written using two approaches:-</p><p><strong>Visual Studio + Office Developer Tools extension<br></strong>This approach assumes you will be developing on the Windows ecosystem and you will require Visual Studio Community and above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*w_kypNN5dW0UR-GIHVPTYg.png" /><figcaption>Office Developer Tool</figcaption></figure><p><strong>Visual Studio Code/ Code Editor + Yeoman Generator<br></strong>This approach can be used to write Office Add-ins in any platform. All you need is a code editor and Yeoman generator from npm.</p><p>I will show how to write a simple Add-in with the two approaches in my next blog post.</p><h3><strong>Deploying an Office Add-in</strong></h3><p>To deploy an Office Add-in for testing or internal use can be done using one of the following approaches.</p><ol><li><strong>SharePoint Catalog<br></strong>Admins can upload an Office Add-in manifest to a SharePoint catalog which is a dedicated site collection that hosts document libraries for Office and SharePoint Add-ins.</li><li><strong>Office Store<br></strong>To deploy an app to the office store, you will first need to register as an app developer (<a href="https://developer.microsoft.com/en-us/store/register">https://developer.microsoft.com/en-us/store/register</a>) then use the sellers dashboard (<a href="https://dev.office.com/officestore/docs/use-the-seller-dashboard-to-submit-to-the-office-store">https://dev.office.com/officestore/docs/use-the-seller-dashboard-to-submit-to-the-office-store</a>) to submit the add-in to Office Store.</li></ol><p>In my next post, I’ll show you how to write a simple Mail App Office Add-in using Office Developer Tools in Visual Studio. Stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=834c03cbd61" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>