vsto

Get Smtp email from ContactInfo stored in Exchange

Hi, I am using VSTO for my Outlook add-in. Currently I am processing email addresses from all Outlook contacts. There is no problem for instances of ContactInfo if EmailAddress1Type is "SMTP". But how to get email address for Exchange contact (Email1AddressType = "EX")? Redemption library is not solution for me as it is expensive just...

How to display a menu in EXCEL if some command is issued from RUN Window

Recently, I saw an application (Excel 2007 , C# communication). In that application, the custom menus that was created from VSTO does not appear if one opens the excel normally. In the RUN WINDOW of Windows OS (XP), if we issue certain command (e.g. excel /appnamediagnostics) then only the menu gets visible in the excel. I hope I am ...

The event can’t be captured while the context menu is out of panel’s range

I'm developing a PowerPoint plugin with VSTO now, I use WPF as a PowerPoint's panel, like this: http://www.freeimagehosting.net/uploads/th.5a91c11d17.png of curse,that's a built-in panel in PowerPoint. but in my custom panel, If I click at A, the mouse event can be captured, but click at B, the mouse event can not be captured. any...

Reading properties from a Mailitem in Outlook outbox makes it not send

I'm writing a VSTO app for Outlook 2007 that periodically checks mails in the Outbox. I can run over the MailItems and check the .Submitted property with no adverse effects. But if I read the SentOn property than the mail in Outlook stops being italicised and no longer gets sent. I have to go mailitem.Send() to make sure it still gets...

Sorting Outlook task by categories programatically through C#

I need to take the existing categories in the task section of outlook and use C# to set it so it would be sorting by categories do you guys have any idea how to do it? ...

Outlook Addin adding custom property which can hold max number of characters

I am working on a outlook 2003 addin using VSTO.Is there a way to add a custom property on ContactItem which can hold maximum number of characters, like body property of a MailItem. Currently a custom property of type TEXT can hold max of 4000 characters. Is there a way to increase this limit or using other type of properties to overcom...

How do I check if a COM dll is registered in C#

I created a Office Add-In in VS 2008, C#, .NET 3.5, and VSTO. It is deployed via ClickOnce. A run-time configuration form executes regsvr32 to register "fooapi.dll" included with the project that can not be registered during instal due to ClickOnce limitations. Is there any prefered way to check and see if "fooapi.dll" is registered duri...

Copying a range of cells from excel into powerpoint using VSTO

How do I copy a range of cells from Excel to Powerpoint. I want to do the same thing as when you select a range of cells, copy to clipboard and then paste in a slide in powerpoint. I have tried Range.Copy(missing) and Slide.Shapes.Paste this code but it's not working. it throws an exception like 'Shapes (unknown member) : Invalid requ...

Is UpgradeMedia Function of PowerPoint 2010 Customizable?

I'm looking at the UpgradeMedia new function in PowerPoint 2010 VBA and want to know if there are any details available about 1. Is it customizable (the output) and 2. What exact media it will upgrade. I haven't found too many details on it, does anyone have any? ...

Excel 2007 VSTO: Disable deletion and repositioning of sheet?

Hi all, I have a VSTO add-in for Excel 2007 and need to figure out a way to disable two types of events in the Excel: deletion of worksheets and repositioning of worksheets. Ideally I could just handle the event, pop a message to the user indicating the function is disabled, and cancel the action. Does anyone know if this is possible t...

Adding a menu item to the picture popup menu in word 2010

In micorsoft word prior to 2010 when you right click on an image/picture the commandbar "Inline Picture" was used as the context menu that would pop up. In word 2010 this seems to have changed, anyone know what the new menu is, or if it can be edited? This is a similar issue as the one discussed here: http://stackoverflow.com/questions/...

Outlook 2007 BusinessCardLayoutXML Does not Change Business Card!

Hi all, I have a Contact form region which I use to create new ContactItems with a few special user properties. One change I make when the contact is created is a slight modification to the standard business card layout. I use a XMLDocument object to change the organization property on the business card to text4, the User4 property. ...

VS 2010 Excel Plugin - Getting Started

Ok so i want to build an Excel plugin (custom task pane) that'll act on the selected range in the active worksheet. Can't find any examples or documentation on how. ...

Excel colours getting distorted when being copied from one template to another using VSTO(C#)

Hi, We are trying to generate an excel sheet using a template. Normally we would have done have a basic "Save As" to save the file but the file size came up to be too high. So, now we're working on copying the used range of the original workbook to a new workbook. The data is getting copied, along with the validations and formulae on u...

Deploy VSTO Document solution to Excel 2003

We have an Excel workbook which has c# VSTO code in it and two .NET DLLs that sit behind it. The spreadsheet used to work for all users in the organisation. Recently our IT department had a problem with the OU which deleted all user accounts. The accounts were restored but since then users in our London office have not had the added fun...

Excel Add-In deployment problem

I built an Excel add-in with VSTO 2005 SE, which I deployed to a user base that is predominantly Office 2003-based, but also with several workstations that have Office 2007 installed on them. On the Office 2003-based workstations, the add-in works perfectly. Now because this add-in was created with the version of VSTO for Office 2003...

VBA vs VSTO for excel to powerpoint

I'm currently considering a number of options for copying an excel sheet into a powerpoint presentation. Using VBA select a excel sheet, copy the range and place it into a newly created powerpoint slide as an image. I create excel automated html of a sheet, once that html is saved(initially), i create an image off of the html. Using VS...

vsto installer - silent mode problem

Background: I am making a VSTO 4.0 add in for Outlook 2007 which enables users to transfer their mail items to a CRM database. Requirements: The installation has to be silent without users knowledge. It will be in a Custom Action in the Installer class or will run from shell command. The problem: The installation occurs in silent mode ...

deploy word addin created with vsto using inno setup

Hi, I created an addin for MS Word using VSTO 3.0, and now I want to deploy it using Inno Setup so I wonder if anyone can point me to a good tutorial, or a good piece of documentation that can help me to achieve this. Thanks. ...

XML Schema to be modified in excel (VSTO)

Hi, I am new to VSTO. I have mapped an excel document with XMl Schema.Now I need to create a functionality to change the xml schema in excel(On click a button it should show me the column of XML in tress view cntrol or in the list box) under which i should be able to delete some column and change the order of column . Any help will be...