office-js

Overlay item for all slides in PowerPoint

↘锁芯ラ 提交于 2019-12-01 21:27:11
I want to make a PowerPoint add-in to show some small html+css component on each slide, and not by adding add-in every time I'm adding a new slide. What should I look for and could it be done with some office add-ins and commands APIs? In PowerPoint, the way to add content that's repeated on every slide is called Slide Master (View > Slide Master). Unfortunately, content add-ins in the Slide Master view show only the static image of the add-in, not live HTML+CSS. So there's no way to put live HTML+CSS on every slide with a single operation, but if all the user needs is the image of the content

Word add-in stops working after dialog.close is fired. Office JS

别说谁变了你拦得住时间么 提交于 2019-12-01 20:54:13
I have been working on an Office365 application where I opened a dialog and after some kind of activity when I close the dialog with dialog.close(). It works perfectly fine but ribbon button stops working and next time it will not show that same dialog again. Office.context.ui.displayDialogAsync("https://" + location.host + "/Dialog.html", { width: 90, height: 90, requireHTTPS: true }, function (asyncResult) { dialog = asyncResult.value; dialog.addEventHandler(Office.EventType.DialogMessageReceived, processMessage); if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) { return; } });

How to autorun Office 365 outlook add-in

▼魔方 西西 提交于 2019-12-01 18:12:59
I'm creating an Office 365 add-in for Outlook. I want my add-in to run automatically when user reads email (opens it in reading pane). My current version displays add-in name in top of mail body and when I click it add-in runs. Office.initialize = function (reason) { $(document).ready(function () { displayItemDetails(); }); }; I would also like to hide that add-in button and just run it behind the scene. Gab Royer The Office Add-In platform does not currently allow apps to auto-launch themselves in the way you're describing. Feel free to request this functionality on the Office Extensibility

How to get username, email address, filename from task pane app

痴心易碎 提交于 2019-12-01 17:59:52
I cam trying to get the following information from the task pane app (Office Add-ins): User information ie. username, email address Filename of the current open document I'm currently developing an task pane add in for Word, Excel and PowerPoint, as well as an Outlook app. Please advise. Single sign-on (SSO) was released in developer preview last week. As part of the system, your add-in gets a token from the Office host application that contains a "preferred_username" property. The value of the property is the email of the user logged into Office. There is an overview at Enable single sign-on

How to autorun Office 365 outlook add-in

不想你离开。 提交于 2019-12-01 17:58:59
问题 I'm creating an Office 365 add-in for Outlook. I want my add-in to run automatically when user reads email (opens it in reading pane). My current version displays add-in name in top of mail body and when I click it add-in runs. Office.initialize = function (reason) { $(document).ready(function () { displayItemDetails(); }); }; I would also like to hide that add-in button and just run it behind the scene. 回答1: The Office Add-In platform does not currently allow apps to auto-launch themselves

Issue with Office.context.document.settings.get

匆匆过客 提交于 2019-12-01 14:58:22
I'm reading settings from a Word Document using: function callbackFunction(){ var varValue = Office.context.document.settings.get("VariableName"); } This call is made right after a call to : Office.context.document.settings.refreshAsync(callbackFunction); The settings are stored in a valid JSON String WebExtensionProperty: I can see the setting object in the Open XML productivity tool, without problem We.WebExtensionProperty prop = new We.WebExtensionProperty(){ Name = "VariableName", Value = "{\"A\":\"1\"}" }; webExtensionPropertyBag1.Append(prop); When I run my office-js add-ins from Visual

Unable to edit worksheet in an Excel add-in (Office js) after closing a Dialog

跟風遠走 提交于 2019-12-01 14:08:24
In an Excel add-in, right after closing a dialog created using displayDialogAsync, you cannot edit the cells in the worksheet. If you click anywhere else outside the worksheet (ribbon, task pane, etc), minimize/maximize Excel, or double click a cell, then you can edit again. If you scroll while you cannot edit, everything in excel becomes "un-clickable". Also, I have noticed that the title bar (where the name of document is shown) remains grayed out until you click outside the worksheet as if Excel didn't have focus. I was able to reproduce this using the basic Excel Add-in template from

Outlook web add-in manifest change to support mobile devices (mobileFormFactor) installation fails

喜夏-厌秋 提交于 2019-12-01 13:55:29
I'm trying to enable outlook web add-in for mobile by making below changes in manifest file but the installation fails and throws below error. Error Message: Manifest file: <?xml version="1.0" encoding="UTF-8"?> <!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8--> <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp"> <!-- Begin Basic Settings: Add-in

Drag and Drop between Outlook and Add-in Pane

∥☆過路亽.° 提交于 2019-12-01 13:46:14
Is it possible to drag an attachment or e-mail to an Outlook Web-Addin. The add-in is available to either Outlook 365 (Web) or the main client My assumption is no - as it is a sandboxed boundary, but I have heard about people running applications in the system tray to intercept the mouse drag event? Is this viable? are there any security risks with this approach? Thank you Rich System tray interception is not a viable solution, not only because of security concerns, but because of deployment reasons. Add-ins functionality and entry points should be entirely described by their manifest files

Outlook web add-in manifest change to support mobile devices (mobileFormFactor) installation fails

无人久伴 提交于 2019-12-01 13:39:07
问题 I'm trying to enable outlook web add-in for mobile by making below changes in manifest file but the installation fails and throws below error. Error Message: Manifest file: <?xml version="1.0" encoding="UTF-8"?> <!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8--> <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas