office-addins

(JavaScript API 1.3 for Office) Custom Properties GetItemOrNull

百般思念 提交于 2019-12-20 05:21:59
问题 I've created this a couple days ago in which i needed help regarding how to add custom properties to a said document. First of all, I'm running Word 1701(7766.2047). Let's say I have a method In which I return a said custom property. First I'd check if the custom property has been created already. I would do this with a simple getItemOrNullObject(key) and.. If returns null Then simply create it AND return it Else return it It is of my understanding that I need to do a return context.sync()

Office Add-in development: Insert image/picture in Word 2016

自闭症网瘾萝莉.ら 提交于 2019-12-19 23:23:22
问题 I would like to ask as to what is the best way to insert an image/picture to the document in JavaScript? I am weighing in between an online and offline images but don't know where to start. I've tried searching the API references but with the lack of code samples, I am not able to fully understand the "how". Any help will be greatly appreciated. Cheers! 回答1: We can insert images into document via OOXML, Html. And it is easy that using Html to insert online images. Here is an example for your

Office add-in with both taskpane and content?

拟墨画扇 提交于 2019-12-19 05:00:24
问题 I spent all night looking this up and can't find it. Is it possible to have an Excel/Office add-in that has both content and taskpane components? Really, I want a content app, but I want extra options/buttons in the ribbon and taskpane that will trigger different actions/changes in my content app. Whenever I try to add the VersionOverrides xml node to my manifest on a content app, it always fails. None of my buttons show up. All the examples I can find that work have the namespace [...]

How to hook event on sending mail in Office add-in (OWA, Windows Outlook 2016)

这一生的挚爱 提交于 2019-12-18 09:31:11
问题 in (Web and Desktop), I need to observe sending email but it seems to be the API available from office.js does not seem to have any event or method for this functionality. In fact, my requirement is to inject tracking pixels when a user clicks on Send button thereby collecting the outgoing email's conversation id. Any suggestion? 回答1: It is available now. On send feature for Outlook add-ins was implemented with lots of limitation, but at least it's there. Outlook add-in on send code sample is

Dynamic content in Add-in command with ribbon dropdown menu

元气小坏坏 提交于 2019-12-18 06:53:12
问题 Is there a way to display dynamic content in a ribbon dropdown menu with Add-in Commands? I think this is not achievable at the time of the writing. In addition, if the items themselves cannot be dynamic is it possible to have at least dynamic strings for the displayed labels. See Edit: I have created a UserVoice feature request for this here Note: this question is only for the new generation of web add-ins (office.js) not VSTO. 回答1: This is not currently supported but It's on our plan.

Dynamic content in Add-in command with ribbon dropdown menu

ぃ、小莉子 提交于 2019-12-18 06:52:13
问题 Is there a way to display dynamic content in a ribbon dropdown menu with Add-in Commands? I think this is not achievable at the time of the writing. In addition, if the items themselves cannot be dynamic is it possible to have at least dynamic strings for the displayed labels. See Edit: I have created a UserVoice feature request for this here Note: this question is only for the new generation of web add-ins (office.js) not VSTO. 回答1: This is not currently supported but It's on our plan.

Add a custom Ribbon group to an existing custom Ribbon group in word 2007

爷,独闯天下 提交于 2019-12-18 06:51:31
问题 How can I add a new group to an existing (3rd party) custom ribbon tab add-in? I know that I can add to out of box ribbons by specifying the Tabs idMSo value but how do I do that for a custom ribbon tab. I have already tried the ID value of the custom ribbon, but it juts duplicates the ribbon? have also tried idMso and idQ attributes passing in the required custom tab Id but no success. I can add it to out of box tab group by specifying the idMso value but not to custom tab regards 回答1: idQ

Add a custom Ribbon group to an existing custom Ribbon group in word 2007

若如初见. 提交于 2019-12-18 06:50:12
问题 How can I add a new group to an existing (3rd party) custom ribbon tab add-in? I know that I can add to out of box ribbons by specifying the Tabs idMSo value but how do I do that for a custom ribbon tab. I have already tried the ID value of the custom ribbon, but it juts duplicates the ribbon? have also tried idMso and idQ attributes passing in the required custom tab Id but no success. I can add it to out of box tab group by specifying the idMso value but not to custom tab regards 回答1: idQ

Access to Outlook RestAPI from an Outlook web Add-in

半世苍凉 提交于 2019-12-17 21:07:50
问题 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

Detecting text changes in Word 2016 from VSTO add-in

穿精又带淫゛_ 提交于 2019-12-17 10:46:19
问题 This question is very closely related to How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)? (and in fact includes the sample code from the answer to that question), but this is specifically about developing in Visual Studio (Professional) 2015 for Word 2016 running in Windows 10. I’m trying to detect when text changes in a Word document from a VSTO add-in. I understand from How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)? (Nov 14, 2011)