vsto

How do I save preferences for my VSTO plugin?

I've written a VSTO plugin for MS Project 2007 which basically just publishes Project data to our Sharepoint portal. To do this, the user has to enter in the sharepoint site name into our plugin everytime that they want to publish. How do I persist this information so that the user only has to enter the information once? Ideally, I'd ...

Problem installing Outlook 2007 AddIn on Vista

We are attempting to install an Outlook 2007 Visual Studio Tools for Office (VSTO) Addin for a client. The MSI file includes a custom action to set the necessary Caspol permissions. We are using Visual Studio 2005, VSTO 2005 SE and .NET 2.0. When they attempt to run the installer on a Vista machine (using an administrator account) it...

Different ways of creating Outlook AddIns

When creating an VSTO Outlook AddIn there are some restrictions which are a bit annoying. For example if you start Outlook due to a click on a mail link, no addins are loaded due to security reasons. Is there a way to override this behaviour? Maybe an alternate way of creating an Addin without using VSTO? If I remember correct there are...

Customizing Outlook and Exchange to add new fields to meetings + querying from Exchange from custom app, is this possible ?

Hi, Is it possible to customize the window used in Outlook to type in meetings (calendar tab) to add new fields to it ? That data would be stored in Exchange, then queried by another app that would do something with it. My problem is to see how I could affect the meeting edit dialog as it is now, to add my new fields. Any ideas ? ...

VSTO power point sample

Hi.I need a sample code to connect to a Sql DataBase to power point with visual studio.Net 2008 programming(Visual Basic language).I need it for my project.please help me as sooner as you can. thanks ...

VSTO power point sample

Hi! I need some samples about VSTO POWERPOINT.But the language sould be in Visual Basic. and the programming should be with VB.NET 2008.Thank you. ...

Creating a Pop-Up Calendar in a VSTO Excel Project

I'm trying to use the System.Windows.Forms.MonthCalendar control within a VSTO Excel workbook. I want the MonthCalendar to pop up when I click a button in the ribbon, but so far I can't get the control to display at all. Private Sub DeliveryDateFromCalendarButton_Click(ByVal sender As System.Object, ByVal e As Microsoft.Office.Tools.Rib...

Unable to load the Excel 2003 Add-in

Hi, I'm trying to develop an Excel 2003 Add-in using Visual Studio 2008 (SP1).I didn't add any code expect for the boilerplate code added by Visual Studio. When I run the application in VS it loads up Excel, but the add-in itself does not work. The "COM Add-Ins" window list the add-in, but it's unchecked. The "Load Behavior" reads as "N...

How can I get the filename of a Word document from C#?

I'm working on a MS Word AddIn (VSTO). The idea is that I work on a Word document and I send it somewhere. I have all the code I need except one thing: is there a way I can get the filename of the Word document I'm working on? (assuming that is already saved) ...

VSTO: Application Focus

Anyone know of a way to see if the Excel window of a VSTO project is active/in focus? I'm looking for an equivalent of System.Windows.Window.IsActive. ...

VSTO Word 2007: How can a control be programmatically moved above/below the range of an existing control?

I am developing a Word 2007 document template with VSTO. The document has several RichTextContentControls and there is a visible ActionsPane with a treeview control where the nodes of the treeview are the names of the RichTextContentControls. Users can re-order nodes by dragging/dropping nodes to new locations in the treeview. As no...

Office 2007/2003 VSTO Shared Add-In Design Query

I am designing a shared add-in using VB.Net 2008 and VSTO that has to fire up when any MS Office App is started. It has to work for both 2002, 2003 and 2007 applications. I have managed to put together a working add-in that pops up a test message stating the version of Office and the Application name and tested this across all the apps o...

Excel Add-in Installation and setting .Net security/trust

Hi All, My environment is VS2005 C# targetting Excel 2003. I gave myself a small dose of over confidence with the installer of this add-in when I saw that an .msi project was created just for me :) within the solution. Needless to say, this has been the trickiest part of the whole project and I am completely stuck on how to deploy and...

Outlook 2007 add-in - What event occurs when an user moves an email from a folder to another one?

Hey, I am writing an Outlook 2007 add-in. I would like to know what event occurs when user moves an email from a folder to another one (with drag and drop or with move to folder option). My application represents a spam filter, I have a Spam folder, and I need to know whenever user moves an email form inbox to spam or form spam to inbo...

VSTO - Outlook event handler in C#

I have a need to display a custom form instead of the default inspector form for an outlook appointment item. I want to do this in C#. There's a good tutorial on devx but it's using VB, and I want to use C#. So I've translated the code to C# and I'm having a problem where I need to override the Open event handler for the AppointmentI...

VB.NET / VSTO2008 fails; can't find runtime.

I'm trying to deploy a VB.NET app which is an extension to Excel using VSTO. It works fine in the development environment, but when someone else (without a dev environment installed, just the .NET framework) installs it, they get: The common language runtime could not be loaded by <application>. Contact your administrator for furthe...

Outlook 2007 add-in - Problem using BeforeItemMove event

Hey, I am writing an Outlook 2007 addin. All I am doing is: private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Folder root; //creates Spam folder if it dosen't exist if (!SpamFolderExist()) { CreateSpamFolder(); } root = (Outlook.Folder)t...

Programmatically Reading _AssemblyLocation From a VSTO Excel Workbook

I've got a Visual Studio Excel Workbook project. When I publish the workbook and examine the source of the workbook (I open WinZip and check custom.xml), I see the tag _AssemblyLocation, which corresponds to the publish path. Is there a way to read _AssemblyLocation from my .NET code? I'd like to be able to read the publish path and de...

Is there a way to replace the Reading Pane with a VSTO CustomTaskBar in Outlook 2007?

I have a custom task pane I've made in VSTO for Outlook 2007, but it needs a fair amount of screen real estate to be functional. I'd like to just take over the place of the Reading Pane, as it won't really be needed when this addon is active. It's also a really great spot since this addon relies on drag-and-drop from mail folders to this...

How do I create a custom Outlook Item?

I understand that Outlook has set items, i.e. Mail, Task, Calendar, Notes, etcetera. How can you create a custom Item that Outlook will recognize as the others? I know that when you add the Business Contact Manager it creates Items like "Opportunities" Can you override an Item, or inherit an Item and alter/add properties and methods? ...