office-addins

Localize Office add-in based on Office language pack in use rather than Windows' current language

不羁的心 提交于 2019-12-10 05:10:52
问题 I'm trying to localize my office add-in, I've read through many docs and tutorials on how to do this, but they all teach on how to localize it based on what the current Windows language, not necessarily what office language interface pack is in use. So I end up in a situation where my Windows language is French, I don't have any office language interface packs, therefore all my menus in the Office are in English, except my add-in which is in French. It looks kind of odd, so I was wondering if

Office addin published failed because incomplete content “Authorizations” in “WebapplicationInfo”

China☆狼群 提交于 2019-12-10 00:03:21
问题 A week ago(7.9) we was publishing our office addin, and we uploaded our addin successfully. Today(7.16) we want to upload the same addin but get the follow error:enter image description here If we added the "Authorizations" node at the Visual Studio, VS won't take that element and it would display error message to state that it is an invalid child element. Please see screen shot So it looks like that there is no "Authorizations" attribute in the "WebapplicationInfo" referencing this link

Office 2010 AddIn development - Can I from code-behind read what theme the user is using?

余生长醉 提交于 2019-12-09 07:18:20
问题 PowerPoint 2010 comes with three default themes, silver, black and blue. Is it possible to check which theme the user is currently using from code-behind? 回答1: I use this code to setup colours for my interface depending on what theme is set. public static class LFTheme { const int ThemeClassic = 0; const int ThemeBlue = 1; const int ThemeSilver = 2; const int ThemeBlack = 3; public static int Theme { get; set; } public static Color BackColor { get; set; } public static Color ForeColor { get;

Load document from local filesystem to Office online

余生颓废 提交于 2019-12-08 20:14:49
I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems there are options available like insertFileFromBase64 and insertOoxml but unclear if those are only in

Outlook Addin Error Code 13005 for auth.getAccessTokenAsync

左心房为你撑大大i 提交于 2019-12-08 12:38:57
问题 So I am trying to use single sign on in an outlook addin. I have registered my app at https://apps.dev.microsoft.com/. In my Manifest I have <WebApplicationInfo> <Id>{myId}</Id> <Resource>api://mydomain.com:3000/{myId}</Resource> <Scopes> <Scope>Mail.Read</Scope> <Scope>profile</Scope> </Scopes> </WebApplicationInfo> mydomain.com is actually a domain i map to my local IP. Outlook accepts my manifest just fine. How ever when i call Office.context.auth.getAccessTokenAsync , I get the following

How to enure the latest JS code is loaded by Task Pane add-in?

一个人想着一个人 提交于 2019-12-08 08:12:55
问题 I am running into an issue with my Task Pane add-in when running it in desktop Excel 2016 on the Mac (OSX). I have deployed the first version of the add-in to a web server and successfully inserted a reference to the add-in's manifest into an Excel workbook and can see it working on the client box (the Mac). Then I made a few changes to some JavaScript code in my add-in's "foo.js" and then deployed those changes to the web server. Now when I open the workbook I do not see the behavior I

Creating version independent Outlook add-ins [closed]

心已入冬 提交于 2019-12-08 05:38:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Looking for a library to create outlook add-in's for outlook 2010, 2007 and outlook 2003 Found this http://www.add-in-express.com/add-in-net/video.php which looks very good but also pricey since it's a general purpose library for creating addins for other office products as well Is there any other library for

Word JS api Access Denied (ContentControl.select, Body.getHtml)

末鹿安然 提交于 2019-12-08 05:14:06
问题 I'm trying to select content control through js select() function - docs - but I'm always getting Access Denied error: Error: { "name": "OfficeExtension.Error", "code": "AccessDenied", "message": "AccessDenied", "traceMessages": [], "debugInfo": { "errorLocation":"ContentControl.select" }, "stack":"AccessDenied: AccessDenied\n at Anonymous function (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:150094)\n at yi (https://appsforoffice.microsoft.com/lib/1.1/hosted

Load document from local filesystem to Office online

ぃ、小莉子 提交于 2019-12-08 03:34:49
问题 I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems

Publishing Outlook add-in which uses Outlook preview element - SupportsSharedFolders

只愿长相守 提交于 2019-12-08 02:34:18
问题 I am developing Outlook add-in which will work with shared mailboxes. Currently, office add-ins are not available on delegate scenarios but MS has released preview build which supports these scenarios. https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/supportssharedfolders My problem is since the manifest.xml has preview elements; I can't upload the it at outlook.office365.com under my add-ins . I get following error. This app can't be installed. The manifest file doesn't