vsto

Location of dlls and other files when a VSTO AddIn project is built in Visual Studio

◇◆丶佛笑我妖孽 提交于 2020-01-06 19:54:50
问题 As explained in this MSDN tutorial, when you run/build an MS Word VSTO project in Visual Studio, it creates your custom office Word AddIn in Word application. You can later remove that AddIn using VS as follows: Cleaning up the Project (quoted from the last section of the above MSDN Tutorial) When you finish developing a project, remove the VSTO Add-in assembly, registry entries, and security settings from your development computer. Otherwise, the VSTO Add-in will continue to run every time

Subclassing MS Word's window from a VSTO add-in

元气小坏坏 提交于 2020-01-06 19:36:49
问题 I'm trying to detect some events that VSTO doesn't provide such as WM_MOVE, WM_SIZE, etc in order to adjust the position of a window. This window is created by the add-in I'm working on and should react when the Word window is changed. I've basically manage to do my task but a very annoying problem remains. Whenever I close Word it pops up its crash handler. Obviously, this has something to do with the improper disposal of the NativeWindow-based object that I use. I've placed a button in the

Get the Content-Type of an Outlook MailItem

隐身守侯 提交于 2020-01-06 16:06:20
问题 I'm working on an Outlook VSTO in C#, targeting Outlook 2010. I need to get the MIME Content-Type of a message (think text/plain or its more exotic alternatives). The only place I can find this is in the message headers, which is a long string that I'd prefer not to need to read and parse manually. MSDN documents the PidNameContentType property (alternate link), but I can't get it to work. Anything like that always fails (not found). String ct = mail.PropertyAccessor.GetProperty( "urn:schemas

Get the Content-Type of an Outlook MailItem

六月ゝ 毕业季﹏ 提交于 2020-01-06 16:05:31
问题 I'm working on an Outlook VSTO in C#, targeting Outlook 2010. I need to get the MIME Content-Type of a message (think text/plain or its more exotic alternatives). The only place I can find this is in the message headers, which is a long string that I'd prefer not to need to read and parse manually. MSDN documents the PidNameContentType property (alternate link), but I can't get it to work. Anything like that always fails (not found). String ct = mail.PropertyAccessor.GetProperty( "urn:schemas

Display logo or image in the Ribbon using VSTO

我是研究僧i 提交于 2020-01-06 15:25:08
问题 I am customizing a ribbon in the Excel using VSTO. I want to display a logo which is of stamp size in a ribbon. I tried the button which is not visible enough. The logo has some text in it and could not read when I use button. Any suggestions? 回答1: VBA command bar has the option to display image but unfortunately Microsoft doesn't have any controls to display image in Ribbon using VSTO. But I used a button and made it disabled ever and displayed image still it is not nice as VBA. 来源: https:/

Are Task Panes Available in Visio VSTO?

雨燕双飞 提交于 2020-01-06 15:21:53
问题 I need create a dockable window for my Visio 2010 add-in developed with VSTO, however I see no way of creating a task pane for Visio. Am I missing something? 回答1: You create dockable windows in Visio. These are "anchor" windows. See this MSDN page: http://msdn.microsoft.com/en-us/library/ff767674.aspx For example: some years ago I created an anchor window to simulate the Office ribbon UI which was not available in Visio 2007 at the time: http://blogs.msdn.com/b/saveenr/archive/2007/02/27

Are Task Panes Available in Visio VSTO?

你。 提交于 2020-01-06 15:21:14
问题 I need create a dockable window for my Visio 2010 add-in developed with VSTO, however I see no way of creating a task pane for Visio. Am I missing something? 回答1: You create dockable windows in Visio. These are "anchor" windows. See this MSDN page: http://msdn.microsoft.com/en-us/library/ff767674.aspx For example: some years ago I created an anchor window to simulate the Office ribbon UI which was not available in Visio 2007 at the time: http://blogs.msdn.com/b/saveenr/archive/2007/02/27

Outlook.MailItem.HTMLBody doesn't refresh when updated under inline response

梦想的初衷 提交于 2020-01-06 07:11:55
问题 When setting MailItem.HTMLBody for a inline response, sometimes the updated body never gets displayed. If I make a call to MailItem.Save() , sometimes it shows up but only under saved draft preview. Does anyone know of a way to force the updated HTMLBody to render? Some addition findings: For emails with only plain text (but MailItem.BodyFormat is OlBodyFormat.olFormatHTML ), this always happens. For emails with HTML content and images, this happens if user chooses to download external

Outlook.MailItem.HTMLBody doesn't refresh when updated under inline response

泄露秘密 提交于 2020-01-06 07:11:15
问题 When setting MailItem.HTMLBody for a inline response, sometimes the updated body never gets displayed. If I make a call to MailItem.Save() , sometimes it shows up but only under saved draft preview. Does anyone know of a way to force the updated HTMLBody to render? Some addition findings: For emails with only plain text (but MailItem.BodyFormat is OlBodyFormat.olFormatHTML ), this always happens. For emails with HTML content and images, this happens if user chooses to download external

How do I listen for a Project Change event from an MS Project VSTO Add-in?

天大地大妈咪最大 提交于 2020-01-06 04:07:54
问题 My Add-in has an application event ProjectBeforeTaskChange that is available from the ThisAddIn class. What I need is a ProjectAfterTaskChange event, but that doesn't exist. Is there a way to listen for the Project Change event from an application level add-in? My end goal is to set three number fields when a specific text field changes. 回答1: ProjectBeforeTaskChange is the correct event to use to monitor field changes. The word "Before" refers to the fact that the handler can prevent the