vsto

C# Outlook 2013 Add-In Keyboard Events

最后都变了- 提交于 2019-12-08 11:27:51
问题 I'm working on a custom shortcut but I'm facing the problem, that the key events do not fire when outlook 2013 is focused (with 2007 & 2010 it's working fine). So far, I've tried different solutions. This one seems to be the best so far, the following code is a global hook. [DllImport("user32.dll")] static extern IntPtr SetWindowsHookEx(int idHook, LowLevelKeyboardProc callback, IntPtr hInstance, uint threadId); [DllImport("user32.dll")] static extern bool UnhookWindowsHookEx(IntPtr hInstance

Excel VSTO Workbooks.Open only working when another action is taken first

蹲街弑〆低调 提交于 2019-12-08 10:44:36
问题 I am working on a VSTO add-in. I have a customized ribbon, and on that ribbon a button called TemplateCallButton . I also have several other functions and buttons, one of which just opens a folder with templates (included as example). The TemplateCallButton only works and adds in a template file if one of the other actions has been completed (seemingly doesn't matter which one). After any other action has run then it works as expected. What's more frustrating is that this behavior only seems

Exception when calling RTD server from Excel

半世苍凉 提交于 2019-12-08 08:54:03
问题 I wrote a VSTO Excel addin using Visual Studio 2010 and after having managed to work around most of the obstacles Microsoft throws into the path of the righteous developer, I finally have to admit defeat. My project contains a Ribbon with some controls, a custom task pane that allows users to search a database via a RESTful interface and a RTD server that lets them put this data in their worksheets. So far, so ... well, painful, I guess: After a lot of struggle with Interop, ComVisibility and

How can I set the picture associated with a node in a SmartArt graphic?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 07:24:45
问题 SmartArt graphics can have pictures associated with the "nodes" (although this is only used by certain SmartArt templates). I know how to set the text of a node via VBA/VSTO automation, but I can't figure out how to set the picture. Can it be done? 回答1: Try something like this - if you've done any work in VBA with smartart this should make sense. Dim oSALayout As SmartArtLayout Dim QNode As SmartArtNode Dim oShp As Shape Set oSALayout = Application.SmartArtLayouts(91) 'reference to

How to dected Excel was starting by automation (VSTO Addin context)

有些话、适合烂在心里 提交于 2019-12-08 07:14:38
问题 Context: I'm running a VSTO Excel application context addin and I will load my addin also when MS Excel was started by an other process for automation in visible mode. So now, it's necessary to know if MS Excel was started by an other process with automation e.g CreateObject() ExcelApplicatoin.Visible =true ("/automation -embedding") At the the moment, I evaluate the following Excel Property: ThisAddIn.Application.UserControl But when MS Excel is started during CreateObject the property is

Identify Shape on the slide in PowerPoint VSTO API using ID/Title/Whatever

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:44:56
问题 I'm writing a PowerPoint 2010 AddIn. In a nutshell this is what I do: Create PowerPoint Template (*.potx) with a great deal of defined Layout slides Write plugin that automates some common tasks that are made after presentation is done. One of them is to insert Agenda Slide (defined as Layout in SlideMaster) as the first slide in every section. After the Agenda Slide is inserted (that was pretty easy with: newAgendaSlide.MoveToSectionStart(sectionNumber) ) I must set the text of two Shape

Outlook addin custom button adding in drop down

半城伤御伤魂 提交于 2019-12-08 06:08:49
问题 Hi i am trying to add custom button in drop down in Outlook .... like as shown in image ..black box is added as custom button some help how i can customize ribbon to get this .. thanks nikhil 回答1: thanks http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem i have solved above issue after adding xml from above link in my VC++ code ribbon xml. 来源: https://stackoverflow.com/questions/10317361/outlook-addin-custom-button-adding-in-drop-down

Outlook VSTO C# Make post to html url

让人想犯罪 __ 提交于 2019-12-08 05:58:01
问题 I am making a plugin for Outlook 2010 using VS2010 C#. The objective of my plugin is to grab the To, CC, BC from the new email when a custom button is pressed from the ribbon and post it to an external url (which takes in a post request). Similar to how forms in html/jsp can post inputs to a different page(url). So far, I can grab the To,CC,BC and store it in a string variable. But I don't know how to make a post to the external url. Any help would be greatly appreciated. Thanks. Here is my

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

(Beginner) How to call Outlook RESTful APIs in Outlook VSTO Add-In

ε祈祈猫儿з 提交于 2019-12-08 05:00:52
问题 I'm looking to develop an Outlook Add-In, in which I receive a meeting room request and propose another room based upon conditions relating number of participants and size of the other rooms. I'm attempting to do this using a VSTO Add-In in C#. My problem comes in the algorithm to determine the list of rooms and which room is smaller. From research, I can see that Outlook incorporates a number of RESTful APIs (https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations).