vsto

How to position Outlook 2007/2010 VSTO Context Menu Button?

放肆的年华 提交于 2019-12-21 17:37:03
问题 I have an Outlook 2007/2010 add-in where I have successfully added a context-menu button to the explorer. The button itself is displayed correctly and working fine however I am unable to position it above the built-in controls on the context-menu, it is always added to the bottom. I have created the same button using VSTO 3.0 for an Outlook 2003 add-in and the same code creates a button that is at the top of the context menu above the 'Open' button. My code is below void Application

VSTO Add in for Office 365

家住魔仙堡 提交于 2019-12-21 07:23:14
问题 I have a couple of Excel Add ins. If I move to Office 365, will these add ins be available ? Is there any development support(VSTO) for Office 365 ? 回答1: I to have been curious about the answer to this, so went looking online. From the following site, I'd say the answer is no. It looks like developing for Office 365 is more along the lines of SharePoint development. http://blogs.msdn.com/b/donovanf/archive/2011/06/29/office-365-developer-guidance-and-resources.aspx I have seen advertisements

How do I create an Excel automation add-in in C# that wraps an RTD function?

余生颓废 提交于 2019-12-21 06:05:27
问题 I have a working RtdServer-based automation add-in: How do I create a real-time Excel automation add-in in C# using RtdServer?. Creating a VBA wrapper is trivial: Function RtdWrapper(start) RtdWrapper = Excel.Application.WorksheetFunction.RTD("StackOverflow.RtdServer.ProgId", "", start) End Function This works. I have attempted to create a C# wrapper as follows: [ClassInterface(ClassInterfaceType.AutoDual)] public class RtdWrappers { private readonly Microsoft.Office.Interop.Excel.Application

Office 2016 add-in development in Visual studio 2013

倖福魔咒の 提交于 2019-12-21 05:46:12
问题 We need to develop add-in for the Office 2016. We are using the Visual studio 2013. It is only showing the Office 2013 add-in templates. Is it possible to create Office 2016 add-in from Visual studio 2013? If so, kindly let me know the steps. 回答1: You need VS 2015 to get the specific templates for Office 2016. VSTO only ever provides templates for "current" versions of Office. If Office 2013 is installed you can develop an Add-in for it. There should be no problem installing and running it in

Create Excel workbook in asp.net

≯℡__Kan透↙ 提交于 2019-12-21 05:42:18
问题 I need to generate an excel file for a user on the fl upon button click. I was using Netoffice before which worked fine for desktop applications. But now I want to do the same thing with an asp.net app. This way my server code doesn't have an access to the client's copy of excel. What approach should I take? 回答1: Use EPPlus. It allows you to create Excel spreadsheets on the server. I've used it and it worked great. It supports advanced functions. using (ExcelPackage pck = new ExcelPackage())

Open XML SDK - Adding a macro programatically to a Word 2007 document

核能气质少年 提交于 2019-12-21 05:24:10
问题 I am trying to dynamically add a new custom ribbon in a Word 2007 document following teh manual method described in this article :- http://msdn.microsoft.com/en-us/library/aa338202(v=office.12).aspx. The article specifies the following :- a) Create a XML file named customUI.xml which will contain the elements you want to display in the tab and put the same in a folder named customUI. b) Rename your Word 2007 document to .zip. Add the above "customUI" folder to the zip file. c) Add the

Outlook VSTO ribbon to home tabControlId

妖精的绣舞 提交于 2019-12-21 04:06:26
问题 I'm writing a VSTO Microsoft Outlook plug-in. The version destination of that plugin is Outlook 2007 and 2010, so I use the Outlook 2007 add-in (in Visual Studio). I have some (visual) problem with ActiveMenuBar. In Outlook 2007 it works fine, but in 2010 the ActiveMenuBar doesn't exist; it is replaced with tabControl and ribbons. I would like to check the version ( Application.Version ) and if the version is 14 (Outlook 2010) then don't add an item into ActiveMenuBar, but add a ribbon to the

Import .msg file to outlook custom folder using c#

落花浮王杯 提交于 2019-12-20 07:21:09
问题 I need to add the .msg files to outlook custom folder using VSTO addin c# 回答1: Outlook.Application objOutlook = new Outlook.Application(); Outlook.MailItem email = (Outlook.MailItem)objOutlook.Session.OpenSharedItem(strFilePath); Outlook.MailItem movedItem = email.Move(ParentFolder); 回答2: You can open an existing Outlook message from a disk by using the CreateItemFromTemplate method of the Application class. The method creates a new Microsoft Outlook item from an Outlook template (.oft) and

Getting email address from a Recipient object

一曲冷凌霜 提交于 2019-12-20 06:44:07
问题 I’m developing a VSTO addin which needs to read all the email address when a new email is being sent out. Below is the code I’m using right now but it is not working in few cases. if (addr.Type == "EX") { if (addr.AddressEntryUserType == OlAddressEntryUserType.olExchangeUserAddressEntry || addr.AddressEntryUserType == OlAddressEntryUserType.olExchangeRemoteUserAddressEntry) { exch = addr.GetExchangeUser(); smtpAddress = exch != null ? exch.PrimarySmtpAddress : null; } else if (addr

Microsoft Project VSTO C# - Event Listener when changed

纵饮孤独 提交于 2019-12-20 06:38:49
问题 I'm having a little trouble I'm trying to write a handler for a Project 2013 addin to listen for changes that occur in a cell in MS Project. If the cell is changed, I want to then enter a flag into one of the hidden cells Any ideas? 回答1: You'll need to add an event handler like this: private void MyEventHandler(Task task, PjField field, object newValue, ref bool cancel) { // My code here } As part of your Add-In's setup you need to add your event handler: Application.ProjectBeforeTaskChange +