Questions tagged [vsto]

Visual Studio Tools for Office (VSTO) is a set of development tools for creating Office automation solutions (add-in or document customization), using .NET and the Visual Studio IDE.

Visual Studio Tools for Office (VSTO) is a set of development tools for creating Office automation solutions (add-in or document customization), using .NET and the Visual Studio IDE.

It is expected that questions about VSTO relate to specific programming problems.

This tag should be used on questions about:

  • How to modify ribbons to behave in a certain way
  • How to certain information about a range of text or shape
  • How to access or modify styles
  • How to deploy add-ins and document customizations, e.g. using ClickOnce or an MSI
  • Writing code for any desktop Office application

This tag should not be used for:

Related Tags:

Links:

6576 questions
17
votes
2 answers

Detecting text changes in Word 2016 from VSTO add-in

This question is very closely related to How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)? (and in fact includes the sample code from the answer to that question), but this is specifically about developing in Visual Studio…
Nate
  • 404
  • 3
  • 11
17
votes
2 answers

MS Office Word VSTO “Load On Demand”

We have developed a product that is a standard VSTO addin (Word 2010 and Word 2013, x86 only). By default when it is installed, it is installed for all users (ie. the addin registry entries are inserted into HKLM -…
RoKa
  • 160
  • 1
  • 12
17
votes
2 answers

How to access Application property in VSTO Outlook add-in outside of ThisAddIn class?

ThisAddIn class created with new Outlook VSTO C# project has a Application property that you can use to among other things get access to Outlook folders and items. The problem is that you can easily use it when you're inside of ThisAddIn class but…
RaYell
  • 69,610
  • 20
  • 126
  • 152
17
votes
2 answers

WPF Textbox not allowing Undo when hosted in an ElementHost within a VSTO/Outlook add-in

I have an Outlook addin (VSTO), on an Outlook form region I have a WPF user control within an ElementHost. I have an issue that a TextBox within my user control does not have the undo capability... in some configurations. Specifically in Windows 7…
Marcin
  • 1,889
  • 2
  • 16
  • 20
17
votes
10 answers

Outlook MailItem: How to distinguish whether mail is incoming or outgoing?

I am writing VSTO Outlook addin in C#, and I need to distinguish, whether given MailItem is incoming or outgoing (or neither, when it is for example a draft). Is there some foolproof way to do this? Best solution I have now would be getting a list…
Tomáš Kafka
  • 4,405
  • 6
  • 39
  • 52
16
votes
2 answers

How to invoke an action during powerpoint slideshow programmatically?

I am automating a Powerpoint scenario using Coded UI & VSTO. In my powerpoint presentation I have created an 'Action' setting on a shape to launch notepad. During slideshow I need to invoke this action by clicking on the 'text/shape' so that it will…
satya
  • 2,537
  • 9
  • 33
  • 43
16
votes
4 answers

When searching Global Address List, is there a way to do a partial search and not just a "startsWith"

I have the following code to search the global address book by a certain string: "CONF" var esb = new ExchangeServiceBinding(); esb.Url = @"https://myurl.com/EWS/Exchange.asmx"; esb.Credentials = new NetworkCredential(_user,_pwd, _domain); var…
leora
  • 188,729
  • 360
  • 878
  • 1,366
16
votes
1 answer

Why does the "Sign the ClickOnce manifests" checkbox keep defaulting to checked on build?

Closely related to Sign the ClickOnce manifests checkbox keeps defaulting to checked on publish. None of the answers listed in this question have assisted me. I have two projects in my solution, as well as other reference projects. One project is a…
Hydronium
  • 793
  • 1
  • 11
  • 28
15
votes
1 answer

What is the difference between a COM Add in and a VSTO Add in

I am trying to develop an addin for outlook, and I found a provider http://www.add-in-express.com. But, they have 2 offerings in one(http://www.add-in-express.com/add-in-net/index.php) they allow to create COM add in Using VS 2010 and .Net Framework…
Mohit
  • 914
  • 4
  • 14
  • 28
15
votes
3 answers

VSTO Add in for Office 365

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 ?
Cannon
  • 2,725
  • 10
  • 45
  • 86
15
votes
2 answers

Detecting a password-protected document

Is there any way to know whether a doc/ppt/xls file is password-protected even before opening the file?
logeeks
  • 4,849
  • 15
  • 62
  • 93
15
votes
1 answer

Cancelling Item_Open causes crash

I am writing an office addin using c# and Microsoft.Interop libraries. When I cancel the opening of an appointment in the Item_Open event by setting the Cancel property to false, it causes Outlook to crash with an Appcrash. The crash happens when…
knechtrootrecht
  • 383
  • 2
  • 11
15
votes
3 answers

How to focus or select a cell in Excel

How to focus a cell in Excel VSTO using C# or to select first cell using C# in VSTO?
venkat
  • 5,648
  • 16
  • 58
  • 83
15
votes
2 answers

How can a Custom Task Pane toggle visibility whilst keeping the UI responsive?

I'm trying to add a Custom Task Pane in an Excel Add-in which is intended to work similarly to the Pivot Tables pane. The intention is that when a Table is selected the custom pane should appear and should disappear. To do this, I've created a…
Paul Turner
  • 38,949
  • 15
  • 102
  • 166
15
votes
3 answers

Not a valid Office Add In

I developed a new Office 2007 addin using VS 2008 and VSTO. after this I go to Office->Excel Options->AddIns->COM AddIns and GO... If I select the .dll which I ve created I get the error '' is not a valid Office Add In. If I run it using the…
Sachin
  • 239
  • 2
  • 3
  • 6