vsto

Testing Outlook VSTO Addins

I am trying to write a really simple Outlook VSTO add in that checks email that is being sent for a few simple properties. My problem is that I cannot seem to install/test the add in using Outlook. I have added unit tests that ensure the code I have written likely does what it should but that final level of integration eludes me. Any sug...

Using C# how should I go about extracting titles subtitles and paragraphs from a docx document.

Using C# how should I go about extracting titles subtitles and paragraphs from a docx document. I am thinking of doing this through VSTO but do know know the word object model. I am only familiar with the Excel object model. Should I take the unzip + linq to XML approach ? Using VSTO i could build an addin which could be used to edit ...

Word 2003 plug-in installation on Server 2003

Hi all, I've had someone else's pile of stuff handed to me. Among these items is a Word 2003 add-in (VSTO 2005 SE, .NET 2.0) that reportedly had been working fine in 2007, but our deployment environment calls for 2003. It installs apparently fine for Office 2003 -- no errors, shows up in add/remove -- but the toolbar is unavailable with...

Where Can I Find Visual Studio Tools for Office Add-in Project Template for Expression Web 2

I am trying to build a VSTO add-in for Expression Web 2. There are Add-in templates for Word, Excel, Project, PowerPoint and so on but nothing that I can find for an add-in project template for Expression Web 2. I have hacked together my best guess of what it would look like, but Visual Studio 2008 keeps erroring out with the message...

Deploy VSTO application in visual studio windows application

I have created a VSTO application using office 2005 & visual studio 2005 professional.I found there a setup folder.While i am running the *.exe file in client machine,it giving me error."An add-in could not be found or could not be loaded." ...

Visual Studio Tools for Office 2008 - using a ribbon button to interact with active document

I've created my own ribbon toolbar tab with a few buttons. I can add text and similar actions to the document I'm working on. Now I want to add a button that will save the document I'm working on without using the Word save button because I want to set some of the parameters. Every example I found showed how to save a document that was...

ClickOnce: The required version of the .NET Framework is not installed on this computer

I have been getting the error "The required version of the .NET Framework is not installed on this computer." (Event Id 4096 in Event log) when trying to install a VSTO application from both a ClickOnce deployment and a local copy. This is interesting as the .NET framework is installed (on my 32bit Windows 7 PC) and the VSTO application ...

VSTO: Changing Existing Word Ribbon Tabs

Using Visual Studio 2008 Pro, is it possible to make changes to the existing Word ribbon items? For example, can I add an additional mail merge option to the "Finish" group in the "Mailing" tab? ...

How do you use WiX to deploy VSTO 3.0 addins?

I want to deploy a VSTO 3 Application Level Word 2007 addin that I've written with Visual Studio 2008. I see that WiX has an extension named WixOfficeExtension that looks like it might have this functionality, but I can't find any documentation for it, and I can't discern it's purpose from the source code. Has anyone attempted this befo...

Migrating to VSTO / Excel Interop Options

Hi We currently have an Excel spreadsheet containing a large amount of VBA code. The VBA code is responsible for: Manipulating, transforming and formatting sheet data. Making calls to C# and C++ COM exposed functionality. In doing so marshalling the sheet data into the C#/C++ methods, getting the results and updating the sheet with ...

How does Excel VSTO Work?

Hi How does Excel VSTO Work? If I create an Excel Workbook solution in Visual Studio 2005 then I can happily code away, access a full Excel object model and even treat the Excel sheet as a design surface. When I build the solution I get a .XLS file and a .DLL (containing my C# code). I can now start up the Excel sheet just by double ...

Create UDF using VSTO and no VBA

Similar to this question (but in my case not VSTO SE), however, I just want to confirm that it is not possible to create a UDF using pure VSTO in Visual Studio 2005 and Excel 2003 - so, to absolutely clear, my question is: Is it possible to create a Excel 2003 UDF using Visual Studio 2005 and a VSTO solution without using any VBA or oth...

How to call a VSTO AddIn method from a separate C# project?

I have a C# Excel Add-in project "MyExcelAddIn" that has a public method Foo() to do something complex. For testing purposes, the add-in also defines a toolbar button which is wired to Foo() so I can test this and verify that clicking the button calls Foo() and does what I want it to do. This is fine. Now I want to call this method from...

Tooltip on Outlook Add-in Ribbon

Hi, I created a outlook add-in using VSTO 2008. I didn't create a separate ribbon/group for this add-in. Instead VSTO automatically create the add-in button in the built-in Ribbon when Outlook starts. Now how do I customize the tooltip of that add-in icon? Here is the snippet to add label and icon for my add-in [Microsoft.Office.Tools....

Open files in Word via ribbon code-behind

Using VSTO, I've created a custom tab in the Ribbon designer and added some groups and button controls there. When user clicks one of the buttons, I'd like to connect to a SharePoint site and open a word document from it in Word (an instance is already open). I'm able to connect to the SharePoint site already and have the URLs to the d...

How do you capture the text on the first page of a Microsoft Word document?

Using VB.NET how do you capture the text on the first page of a Microsoft Word document? I've imported the Word 12 interop library (for Word 2007), and I know how to use the document.range function, but how do you know which page you're on when you're selecting text? ...

Why does a Form Region in Outlook 2007 Plugin keep a reference to the underlying object open?

I've created an empty Outlook 2007 Plugin Project in Visual Studio 2008 (SP1). Then I added a new Form Region (Contact type, Adjoined, otherwise defaults) and then I run the project. Outlook opens, I go to a contact change a couple of things, then click on the close button. Outlook asks if I want to save, I choose No. My understandin...

Error Compiling Program in Visual Studio 2008

So I have never seen this issue before and don't know where to begin troubleshooting the issue. Cannot register assembly "obj\Debug\MyProject.Vsto.dll". Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) Where do I start to troubleshoot this? I should mention this...

Is it possible to develop a chat plugin like Gtalk for outlook?

My company uses outlook as the email client and we login to an exchange server. Out address book (not individual contacts) has all the users connected to our company network. Our company dont have IM ;-( .. I am thinking about developing an outlook plugin like Gmail's Gtalk . is this possible(technically)? Or how difficult it is? Will ...

Save VSTO Word 2007 Template application to docx without prompt to save template

Steps to reproduce: Create Word 2007 Template Project (Visual Studio 2008 Professional SP1) Place DateContentControl on document Save, Publish, open .dotx Modify DateContentControl, Save Click No, Close Word Open Saved document, Modify DateContentControl - no more prompts on subsequent saves... Change project code, publish, update VS...