office-addins

Office Web Add-ins - Internal error when saving settings

无人久伴 提交于 2019-11-30 20:15:28
问题 I'm getting an failure when trying to save my document settings. The message is the following: {"name":"Internal Error","message":"An internal error has occurred.","code":5001} My code: Office.context.document.settings.set('token', token); Office.context.document.settings.set('email', email); Office.context.document.settings.saveAsync(function (asyncResult) { if (asyncResult.error) { displayError(asyncResult.error.message); } }); The problem revealed when I reinstalled my OS (Windows 10) and

How to show vertical pane in Outlook add-ins in Outlook Web App (OWA), Outlook 2016 Mac & Windows

▼魔方 西西 提交于 2019-11-30 17:31:12
问题 I am developing an outlook add-in targeting OWA, Outlook 2016 for Mac & Windows. My requirement is to show the add-in vertically on right side while reading and composing mail. For compose it is by default showing as desired but for reading it is showing horizontally which I want to show vertically. In short I like to show my add-in exactly same as Evernote add-in is showing. Your help will be much appreciated. Following screen-shot of Evernote in OWA is what I want to show including icon

Keep Office add-in task pane open at document load

不想你离开。 提交于 2019-11-29 16:54:25
I have a task pane (desktop) Office add-in built with the latest VS 2015 template for Excel and Word add-ins. When I open the file, the add-in task pane is not visible. My users need to click a button on the toolbar to open it, which they complain about. In addition, I save the document with the task pane expanded but it does not affect that behavior. I remember a previous version of the add-in manifest (when it was called app for Office) kept the pane open but I upgraded it so I can use custom tabs in the Office ribbon. Can I make the task pane stay expanded when the document or worksheet

Why doesn’t the form not POST in Excel 2016 for Mac?

谁都会走 提交于 2019-11-29 16:51:18
We are testing an add-in for Excel that has a form that is POSTed to https://httpbin.org/anything . The form will not POST in Excel 2016 version 15.39 (171010) for Mac (High Sierra ver 10.13.1). Here are the HTML form’s essentials: <script type="text/javascript"> //submit form $("#testForm").submit(); </script> </head> <body> <form method="POST" id="testForm" action="https://httpbin.org/anything" accept-charset="UTF-8" target="_blank"> <div> <input type='hidden' name='mergeDataFormat' value='csv'> </div> <div> <input type="hidden" name="mergeData" id="mergeData" value='Name,Street,"City, State

Access Ribbon Elements Programmatically in XML Ribbon

家住魔仙堡 提交于 2019-11-29 13:35:51
This seems to have been asked several times on here with no real answer: Accessing Ribbon Controls Programatically in an XML Ribbon Office Ribbon: How to access a control when the ribbon was created using XML If a ribbon is created using ribbon xml, as far as I can tell, there is no programmatic exposure of the components defined in that xml. The only obvious limited way to change the state of these components is to use something like an onAction, getContent, getImage event, and the IRibbonControl element offers very little for manipulating the element in question (not to mention, most of

Access to Outlook RestAPI from an Outlook web Add-in

时光总嘲笑我的痴心妄想 提交于 2019-11-28 13:45:23
I developed an Outlook Web Add-in that is working fine. It's a Taskpane that is available in compose mode of appointments and that collects event's data, adds a few ones and send that all to an API somewhere. What I would like to do now is to subscribe the authenticated user to the Outlook Rest API in order to get notified when the event is deleted. The subscription call should look like this one: POST https://outlook.office.com/api/v2.0/me/subscriptions HTTP/1.1 Content-Type: application/json { @odata.type:"#Microsoft.OutlookServices.PushSubscription", Resource: "https://outlook.office.com

Serialize current ActiveDocument from office 2007 add-in

扶醉桌前 提交于 2019-11-28 12:46:09
Im creating a VSTO Office 2007 add-in. I need to be enable or find a solution where I can save to a webservice with a byte[] instead of hard drive. So, I open the document by going to a website and clicking on a url, that click send me a Word Document, and I select Open using MS Word 2007. The document open, and if I check the data I have: ActiveDocument.Fullname = http://[servername or ip]/[some iis folder]/file.asp?id=353&type=doc` so I think this is all in memory since I dont have the original file or temp file if exists. I have no problem from a disk, even if the document is open. How can

Cleaning office add-in cache

只愿长相守 提交于 2019-11-28 12:37:35
I have taken over a previously written office add-in with yeoman. I have been changing settings and else but after the initial install to see how far it has gone I believe my outlook client has stored some kind of cache. When I try to install the updated version it still holds the logos and settings for the previous version but when install it on a system which did not have a previous version of it its all good. Any suggestions help. I have tried deleting my local profile file and recreate it by relaunching outlook but that does not seem to have effect on the whole process. Thanks EDIT: I am

Set custom document properties with Word interop

亡梦爱人 提交于 2019-11-28 11:26:55
I want to set some custom document properties of a word document I'm creating in my C# code. To do this, I followed this MSDN article and came up with this code: using Word = Microsoft.Office.Interop.Word; // Version 12.0.0.0 word = new Word.Application(); word.Visible = false; Word._Document doc = word.Documents.Add(ref missing, ref missing, ref missing, ref missing); logger.Info("Setting document properties"); Core.DocumentProperties properties = (Core.DocumentProperties)doc.BuiltInDocumentProperties; properties["Codice_documento"].Value = args[3]; properties["Versione_documento"].Value =

Keep Office add-in task pane open at document load

耗尽温柔 提交于 2019-11-28 11:20:18
问题 I have a task pane (desktop) Office add-in built with the latest VS 2015 template for Excel and Word add-ins. When I open the file, the add-in task pane is not visible. My users need to click a button on the toolbar to open it, which they complain about. In addition, I save the document with the task pane expanded but it does not affect that behavior. I remember a previous version of the add-in manifest (when it was called app for Office) kept the pane open but I upgraded it so I can use