vsto

VSTO Outlook: Get selected attachment

依然范特西╮ 提交于 2019-12-11 02:16:30
问题 I'm trying to do an action on a selected attachment in outlook 2010. I created an Outlook VSTO project in VS2012. This is the XML for adding a button on the attachment ribbon: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <ribbon> <contextualTabs> <tabSet idMso="TabSetAttachments"> <tab idMso="TabAttachments"> <group label="MyGroup" id="MyAttachmentGroup"> <button id="AttachButton" size="large" label="Do

VSTO - Best place to store Excel workbook settings

你说的曾经没有我的故事 提交于 2019-12-11 00:49:59
问题 I have a legacy Excel AddIn implemented in VBA which I am slowly porting to .net using VSTO. Using this AddIn I am storing settings per workbook within a hidden sheet. I was wondering if there is a better approach to do this using VSTO. 回答1: You can use Custom Document Properties to store the settings. 来源: https://stackoverflow.com/questions/10001069/vsto-best-place-to-store-excel-workbook-settings

Powerpoint 2010 Multiple Instances

不问归期 提交于 2019-12-11 00:49:54
问题 I have seen numerous posts on this subject here, but none seem to answer this issue directly. I want to control two instances of Powerpoint running on a second monitor. The ideal solution looks like this: PowerPoint.Application PPTViewer1 = new PowerPoint.Application(); PowerPoint.Application PPTViewer2 = new PowerPoint.Application(); I can do this manually, simply by starting two instances of PowerPoint, loading the presentation, and starting the slide show from each instance. I can toggle

Powerpoint 2010 VSTO AddIn taskpane on multiple Windows

≯℡__Kan透↙ 提交于 2019-12-11 00:36:36
问题 I would like have a taskpane displayed on each document-windows, I have read all MSDN articles about it, but it doesn't work. I click on ToggleButton1 when 3 or 4 document are open, and i get 3 or 4 TaskPanes, but on same document window. Edit : I think i don't have correctly explain the problem, sorry. New try : I click on ToggleButton1 on Presentation 1 window when 3 or 4 document are open, and i get 3 or 4 TaskPanes inside Prestation 1 window, windows from other presentation are empty.

Outlook 2007 Add-in Deployment as a DLL

血红的双手。 提交于 2019-12-11 00:28:31
问题 I had my first outlook add-in developed, I can see that debugging the add-in opens the outlook automatically, the issue i noticed that outlook takes about 20 sec to open when my add-in attached ( as new menu with one button ). I thought it might be caused by the fact the im debugging my project!, I published my add-in to my localhost, and then installed it using the click once thing, but still hangs on load the outlookAddIn2.vsto file is used by outlook as my custom add-in, but when i saw the

C# VSTO-Powerpoint-TaskPanes in separate windows.

孤人 提交于 2019-12-11 00:14:34
问题 I'm creating a VSTO for my company, and have ran across a interesting issue that I could use some help with. I will try to explain this to the best of my ability. I have the AddIn set up right now for it to create 2 customTaskPanes upon start up via Application.AfterNewPresentation events. And the ability to hide/show these based on user input from togglebuttons on the Ribbon. Now when I fire up the first PowerPoint 2010 called "Presentation1" everything works great, I can show/hide the

Why dsofile.dll still need Office Installation?

邮差的信 提交于 2019-12-10 23:09:26
问题 I wrote a small piece of code using the dsofile.dll component to modify document properties after upload a file to a web server (to set a guid to link the file to a database record). I took the component and intructions from here: http://support.microsoft.com/kb/224351 As far as I understanded it don't use Office to modify the properties. I implemented it and tested it on my 32 and 64 bit machine (webserver runs on 32bit mode) and all worked fine. I was happy. But after deploy it to a life

Making vsto add-in installable

雨燕双飞 提交于 2019-12-10 22:08:35
问题 I´ve created several VSTO add-ins for Outlook/Word/Excel/PowerPoint. When i build them & then start the accociated program, the add-ins are installed and work wonderful. When I try to install the DLL manually, in "Options > Add-Ins > COM-Add-Ins:Go to... > Add..." and then select the DLL, the program tells me, that it is not a valid Add-In. What is the problem here? Visual Studio 2010 can install them automatically. Can someone help me? Thanks! 回答1: A .net VSTO addin DLL is not a normal COM

Release COM when developing an Excel Addin?

折月煮酒 提交于 2019-12-10 21:59:10
问题 I understand that I should release COM objects when using interop. Are things a bit different when developing and Add-In, Excel for example? Here is a loop I have and I was curious to know if the Marshal.ReleaseComObject is necessary? foreach (var sheet in results.Sheets) { var newSheet = workbook.AddSheet(); newSheet.SetSheetTabColor(sheet.TabColor); newSheet.SetSheetName(sheet.TabName); newSheet.Cells.SetFont("Calibri", 8); newSheet.FreezeRow(1); var endRow = sheet.Data.GetUpperBound(0) + 1

Solution for Deploying & Updating Document Level VSTO Addin Including the Document

佐手、 提交于 2019-12-10 20:36:56
问题 Do any of you have advice on methods for deploying an office VSTO addin, especially Excel, that makes it easy to update and deploy the document as well as the addin. I have a document level addin for Excel 2010 that I created using VSTO. I currently deploy it using click once. However, this has a few problems. The first problem is that I publish it to ftp then users install it from my website. Since the document and addin are downloaded from the internet, I obviously have trouble getting