develop, build, package and deploy office add-ins with visual studio - espc 2015

40
Develop, Build, Package and Deploy Office Add-ins with Visual Studio Jeremy Thake (Microsoft) Bram de Jager (Macaw)

Upload: bram-de-jager

Post on 16-Apr-2017

1.847 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Develop, Build, Package and Deploy Office Add-ins with Visual Studio

Jeremy Thake (Microsoft) Bram de Jager (Macaw)

Page 2: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Developer visionDATAUSERS

HTML

Page 3: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Change is coming…

Apps for Office =

Office Add-ins

Page 4: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Agenda• Intro to Office Add-ins• Develop and Build add-ins• Package and Deploy add-ins• Wrap-up

Page 5: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

INTRO TO OFFICE ADD-INSDevelop, Build, Package and Deploy Office Add-ins with Visual Studio

Page 6: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

History• Visual Studio Tools for Office, supports COM and VSTO Add-ins• VSTO 2003 downloadable for Visual Studio 2003• VSTO 2005 (SE) downloadable for Visual Studio 2005• VSTO 3.0 build into Visual Studio 2008• VSTO 4.0 build into Visual Studio 2010

• Office Developer Tools, supports also Office Add-ins• Office Developer Tools for Visual Studio 2012• Office Developer Tools for Visual Studio 2013• Office Developer Tools for Visual Studio 2015

Page 7: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Different Office Add-in types• Task Pane Add-in• Content Add-in• Contextual Mail Add-in• Add-in Command

Page 8: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Task pane Add-in• Side-by-side

• Shown next to the Office document• Supported by Word, Excel,

PowerPoint, and Project

• Contextual information • Insert content into the document• Gets content to perform an action

• Can be used for• Retrieving information from web

service based on the selection of the user

Word 2013,Excel 2013,Excel Online,PowerPoint 2013,PowerPoint Online,Project 2013

Page 9: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Content Add-in• Appears in body• Shown in line of the document

• Integrate • Integrate rich, web-based data,

visualizations, embedded media, as well as other external content

• Can be used for• Display Excel data plotted on top of

geographical maps

AccessExcel 2013Excel OnlinePowerPoint 2013,PowerPoint Online,Text/Pic

Page 10: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Contextual Mail Add-in• Shown in Outlook item

• Requires Outlook 2013 & Exchange 2013

• Seamless integration on desktop, browser and devices

• Scenarios• Based on contextual trigger in item

body• Runs in messages and/or appointments

• Can be used for• Shows Bing Maps centered on the

address found in the body of the email

Outlook 2013Outlook Web AppOWA for Devices

Page 11: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Add-in Command• Currently shown in Outlook item• Command in the Office UI to

launch add-in or perform UI-less operation

• Scenarios• Open a task pane to perform

advanced operations based on the emails body

• Can be used for• Copying the email (with details) to

note taking app

Outlook 2013Outlook Web AppOWA for Devices

Page 12: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Win32 Online iPad iPhone Mac Android UWA

Read

Compose

APIs

View

Edit

Add-in Roadmap

Today

Backlog

Next

Page 13: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Roadmap highlights• Expanding to more clients• Support for iPad Office clients• Support for Outlook.com (consumer market)

• New features• New Add-in command (ribbon extensibility)• New Outlook Task Pane add-ins

Page 14: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015
Page 15: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015
Page 16: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015
Page 17: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

““

DEMO How does a Content Add-in look in Excel

Page 18: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Demo scenario• Introduction to Content Add-in in Excel• Use the Bing Maps add-in to visualize geographical dispersed

information• Show the same Excel sheet in both Excel desktop client and Excel

Online

Page 19: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

DEVELOP AND BUILD OFFICE ADD-INSDevelop, Build, Package and Deploy Office Add-ins with Visual Studio

Page 20: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Anatomy of an app for OfficeHTML5, CSS, JavaScript (in all its glory!)

2Web applications hosted by any HTTP delivery mechanism

3Document-based manifest driven applications.

1

Page 21: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Developer tool sets and APIs• “Napa” Office 365 Development Tools• Browser based developer tool, http://dev.office.com• Start in Napa, continue in Visual Studio

• Office Developer Tools for Visual Studio• Visual Studio 2012 extension• Visual Studio 2013 RTM• Visual Studio 2013 – March 2014 Update

• Support for Office 2013 SP1 (Office.js v1.1)

• Combine with the Office 365 (Unified) APIs

Page 22: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Office UI Fabric• Responsive, mobile-first, front-

end framework for developers that delivers instant look and feel of Office• Handles typography, color, icons,

animations, responsive grid layouts and localization

Page 23: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Office Add-in rich client runtime

Page 24: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Office Add-in web clients

Page 25: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

““

DEMO Build a Wikipedia Task Pane add-in in Word

Page 26: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Demo scenario• Introduction to Office Add-in project template in Visual Studio• Develop Task Pane add-in using the Wikipedia REST API• Build and debug experience

Page 27: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

PACKAGE AND DEPLOY ADD-INSDevelop, Build, Package and Deploy Office Add-ins with Visual Studio

Page 28: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Publish Office Add-ins• Office Store • Public marketplace that Microsoft will host and regulate on Office.com

• Apps for Office catalog on SharePoint• For task pane and content add-ins • Centralized corporate catalog managed by IT

• Exchange catalog• Private catalog for mail add-ins

• Network shared folder app catalog• Deploy task pane and content add-ins to a central network shared folder

Page 29: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Add-in availability by location

App type

Office Store Corporate catalog Exchange Server Shared folder app catalog

Task Pane add-in x x x

Content add-in x x x

Mail add-in x x

Same Office-solution catalog experience that

the Office Store provides. App Catalog located in SharePoint.

Add-ins are only shown in Office clients.

Availability based on access to file share.

Page 30: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

What goes where?

Visual Studio 2013MS Build

WebDeploy package

XML Manifest

Office Client

File ShareCorporate Catalog

IIS WebserverAzure Website

Office Store

Page 31: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

““

DEMO Publish the Wikipedia add-in to Azure and Corporate Catalog

Page 32: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Demo scenario• Publish WebDeploy package to Azure• Upload XML manifest to Corporate Catalog• Configure Word desktop to consume add-ins from the Corporate

Catalog

Page 33: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Configure Office client for App Catalog• Office client configuration• Open Word• Open Options » Trust Center » Trust Center Settings• Select Trusted App Catalogs (on left)• Add the Corporate Catalog URL (check “Show in menu” box)

• Registry entry• HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\WEF\TrustedCatalogs

Page 34: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

WRAP-UPDevelop, Build, Package and Deploy Office Add-ins with Visual Studio

Page 35: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Scenarios• Start (review/approval) workflow process from within the Office

clients• Allowing employees to browse, select and insert (legal) text snippets

into documents, which are managed in a central location• Pull meeting location from meeting invite and highlight the meeting

room plotted onto the building floor plan• Recognize the tracking number for package delivery and retrieve real-

time delivery status• And many more…

Page 36: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Write once, run everywhere

Page 37: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Key takeaways• Office Add-ins are the means for enabling contextual experiences• Office Add-ins boost productivity by integrating services into Office• Leverage existing investments when building Office Add-ins

Page 39: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Related sessions Office Add-ins• Overview• This session, Bring Your Business Solutions Into Our Office Clients Using HTML & JavaScript

(level 200), T12, Jeremy Thake, Bram de Jager

• Getting started• Today 16:45, Develop

, Build, Package and Deploy Apps for Office with Visual Studio (Level 300), T26, Bram de Jager, Jeremy Thake

• Deep Dive• Thursday 15:15, Deep Dive Into Building Outlook Add-ins (level 300), TH27, Jeremy Thake

• Today 18:00, LIVE Hackathon at ESPC15 with Jeremy Thake

Page 40: Develop, Build, Package and Deploy Office Add-ins with Visual Studio - ESPC 2015

Questions & answers Thank you!

@bramdejagerhttp://www.linkedin.com/in/bramdejager http://bramdejager.wordpress.com http://spcb.codeplex.com