office-addins

Deploying Office 2010 addin

核能气质少年 提交于 2019-12-07 19:12:28
问题 I've created two addins, one is shared addin (for Excel, Word and Outlook) and another one is for Outlook. They work fine on my machine (where I developed it). Framework used: 4.0 I've created a 'setup project' throught VS2010 following steps in Deploying an Office Solution by Using Windows Installer. When I run setup of it, shared addin runs fine. But the outlook addin does not work. This is log of 'Event Viewer' Event Type: Error Event Source: VSTO 4.0 Event Category: None Event ID: 4096

Office.js dialog API and multiple displays with high DPI

时光总嘲笑我的痴心妄想 提交于 2019-12-07 09:20:26
I noticed a problematic behavior of the Office.js dialogAPI . Indeed, I use two monitors one being an high DPI (3840*2160) with 250% zoom. The second one is 1920*1080 (zoom 100%). If Office is set in monitor 1 and if I open the dialogAPI (let us say with 80% default values), then the size of the dialog is computed using the extension of the two monitors. Therefore, the dialog windows becomes gigantic, span the two displays and cannot be used without resizing. Thank you Benoit. Yes this is an issue we are aware of and are currently following up. Could you try using the Dialog helper in

Creating version independent Outlook add-ins [closed]

北战南征 提交于 2019-12-07 03:40:31
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 comparison and hopefully cheaper too ! google search is inadequate with a rather generic name such as

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

寵の児 提交于 2019-12-06 14:40:36
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 expect from the new version of foo.js, rather the old behavior is seen. What I have tried: On the same Mac,

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

穿精又带淫゛_ 提交于 2019-12-06 13:35:37
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 conform to the schema definition. The element 'DesktopFormFactor' in namespace 'http://schemas

Deploying Office 2010 addin

回眸只為那壹抹淺笑 提交于 2019-12-06 09:10:15
I've created two addins, one is shared addin (for Excel, Word and Outlook) and another one is for Outlook. They work fine on my machine (where I developed it). Framework used: 4.0 I've created a 'setup project' throught VS2010 following steps in Deploying an Office Solution by Using Windows Installer . When I run setup of it, shared addin runs fine. But the outlook addin does not work. This is log of 'Event Viewer' Event Type: Error Event Source: VSTO 4.0 Event Category: None Event ID: 4096 Date: 4/26/2011 Time: 7:37:52 PM User: N/A Computer: XXX Description: Customization URI: file:///C:

Change value of a table in content control

試著忘記壹切 提交于 2019-12-06 08:31:00
I created a Word add-in and I insert a table in Word 2016 (version 16.0.7341.2029) using the Word API 1.3 like this: var value = [[3,4],[5,6]]; Word.run(function (ctx) { var table = ctx.document.body.insertTable(value.length, value[0].length, Word.InsertLocation.end, value); var myContentControl = table.insertContentControl(); myContentControl.tag = 'MyTable1'; myContentControl.title = 'This is a table'; return ctx.sync() .then(function () { console.log('Table created'); }).catch(function (err) { console.log(err); }); }); I see the table in a content control with the proper values. When I

Office Add-in development: Insert table in Word 2016

夙愿已清 提交于 2019-12-06 08:05:53
I am trying to insert a table using Office.js inside the body of a document but to no avail. I have used the following code: function insertSampleTable() { showNotification("Insert Table", "Inserting table...") Word.run(function (context) { // Create a proxy object for the document body. var body = context.document.body; body.insertTable(2, 2, Word.InsertLocation.end, ["a"]); // Synchronize the document state by executing the queued commands, and return a promise to indicate task completion. return context.sync(); }) .catch(errorHandler); } But upon clicking the button, it gives me the error

PowerPoint command like insert slide or apply theme equivalent on Office javascript API

为君一笑 提交于 2019-12-05 18:49:36
I'm developing a PowerPoint add-in and in future, it will be publish in Office Store. But it is VSTO project (C# and winforms) which could not be publish. Based on my search, it must be Office Web Add-in project (manifest xml and web pages). I'm trying to convert my development from VSTO to Office Web Add-in but some of functionalities like open presentation, insert slide and apply theme aren't found on the Office.js. Is there equivalent functions in Office.js? or other way? Hopefully someone share their ideas about it. Thanks in Advance. This is currently no way to execute these actions

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

穿精又带淫゛_ 提交于 2019-12-05 12:09:43
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 there's a way to localize based on current office language interface pack in use. I found that the