vsto

How to add custom internet headers to emails?

若如初见. 提交于 2020-01-06 02:25:33
问题 Can someone provide how to create and add custom internet headers to the mailItem and how to read them later? I am trying to attach a keyword to every email that is sent so it can be read by another outlook client with the same add-in. 回答1: Assuming you're writing a Outlook Plugin (based on your tag). Get a Handle on your current mail item (email in draft form)... // Describes your Custom Header string PS_INTERNET_HEADERS = "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000

VSTO integration in asp.net web application

五迷三道 提交于 2020-01-05 09:23:21
问题 I want to implement VSTO word integration in web application mvc3, like google docs. Is it possible to update word document online ? through VSTO. 回答1: VSTO enables you to run your code inside MS Office applications, such as Word, Excel, etc. and integrate your application with Office's features. However, this includes only desktop Office applications, which do not expose any web UI. 回答2: VSTO is not designed to be used in web applications. It introduces a dependency on MS Office which is not

Why does my Modal WPF dialog slip behind MS Word

放肆的年华 提交于 2020-01-05 07:04:50
问题 I have a MS Word Application Add-in written with VSTO. It contains a button used to create new Letter documents. When pressed a document is instantiated, a WPF dialog is displayed to capture information and then the information is inserted into the document. On rare occasions, the WPF dialog slips behind MS Word. I then have to kill the Winword.exe process because the dialog is Modal. I use the following code for my WPF dialog. The OfficeDialog sub class is used to make the dialog look like a

Why does my Modal WPF dialog slip behind MS Word

霸气de小男生 提交于 2020-01-05 07:04:08
问题 I have a MS Word Application Add-in written with VSTO. It contains a button used to create new Letter documents. When pressed a document is instantiated, a WPF dialog is displayed to capture information and then the information is inserted into the document. On rare occasions, the WPF dialog slips behind MS Word. I then have to kill the Winword.exe process because the dialog is Modal. I use the following code for my WPF dialog. The OfficeDialog sub class is used to make the dialog look like a

Keyboard hook fires multiple times in MS Word

让人想犯罪 __ 提交于 2020-01-05 04:28:16
问题 This is in reference to a question asked in Detecting text changes in Word 2016 from VSTO add-in While the answer provided by Dirk Vollmar works, I noticed that hitting one key triggers KeyboardHookCallBack 10-12 times and I am not able to capture accurately the sequence the keys are being hit in. Pardon me if my question is stupid but is there a way to make sure that the KeyboardHookCallBack is triggered only once for each key? I have been trying this for some time now without any luck. I'd

How to register UDF/RTD within VSTO project

折月煮酒 提交于 2020-01-04 14:13:51
问题 All, This is a follow up for my question here. My setup: Visual Studio 10 Language C# Excel 2007+ Windows XP+ What I would like to achieve is this: Create VSTO addin for Excel with a custom Ribbon component and a custom Task Pane Create an RTD server Create some UDF's that wrap the =RTD() -calls for the Excel users Have the clients install the Addin through a ClickOnce installation Apart from the last requirement, I am basically done. The only problem I have is to get the RTD server and the

API for Powerpoint add-in (Windows and Mac)

烂漫一生 提交于 2020-01-04 09:38:10
问题 Is there a new API for developing add-ins for Office 2016 for Mac? I have seen a javascript API but I have not clear if this applies to Office for Mac 2016, Office for Windows 2013+ only or Office Web Apps only. Please point me to an official documentation clarifying that. 回答1: Update, April 2016: MS recently made some announcements about Mac support at Build; primarily around Word & Excel. Interactive chart similar to the image below Eventually, but not yet. The only thing that is in for Mac

API for Powerpoint add-in (Windows and Mac)

喜欢而已 提交于 2020-01-04 09:38:07
问题 Is there a new API for developing add-ins for Office 2016 for Mac? I have seen a javascript API but I have not clear if this applies to Office for Mac 2016, Office for Windows 2013+ only or Office Web Apps only. Please point me to an official documentation clarifying that. 回答1: Update, April 2016: MS recently made some announcements about Mac support at Build; primarily around Word & Excel. Interactive chart similar to the image below Eventually, but not yet. The only thing that is in for Mac

How to convert from System.Drawing.Color to Excel.ColorFormat in C#? Change comment color

五迷三道 提交于 2020-01-04 06:07:48
问题 I'm developing a vsto addin for Excel, and I'm trying to change the color to the comments in Excel. This is the code that I have: Excel.Range activeCell = _application.ActiveCell; activeCell.AddComment("some text")); activeCell.Comment.Shape.Fill.BackColor = Color.Red; The exception I'm getting is: Cannot implicitly convert type 'System.Drawing.Color' to 'Microsoft.Office.Interop.Excel.ColorFormat' I cannot find how to make a conversion between the two formats. 回答1: One option is to use

Deleting a ConditionalFormat

时光怂恿深爱的人放手 提交于 2020-01-04 02:54:06
问题 I am trying to add a conditional formatting using C# with the below code. Microsoft.Office.Interop.Excel.FormatCondition formatConditionObj = null; formatConditionObj = (Microsoft.Office.Interop.Excel.FormatCondition)myRange .FormatConditions.Add(Excel.XlFormatConditionType.xlExpression, Type.Missing, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); formatConditionObj.Interior.ColorIndex = 5; Dynamically i change the range where these formats are applied using