tagged [vsto]

Adding items to RibbonDropDown at runtime

Adding items to RibbonDropDown at runtime So I have a dropdown menu in a ribbon with contents that can be changed while it is being used. Outlook is also happy to let me 'add' or 'insert' items into i...

Excel error HRESULT: 0x800A03EC while trying to get range with cell's name

Excel error HRESULT: 0x800A03EC while trying to get range with cell's name I am working with Window Service project. that have to write data to a sheet in Excel file in a sequence times. But sometimes...

3 Aug at 09:25

Custom Ribbon in VSTO Addin for Outlook 2010 doesn't display

Custom Ribbon in VSTO Addin for Outlook 2010 doesn't display I've got a minimal VSTO Addin for Outlook 2010 with a ribbon. My only goal is to display a ribbon (created via designer) with no functional...

15 Feb at 20:20

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

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,...

17 Aug at 00:12

Outlook 2007 vsto add-in. Get email sender address

Outlook 2007 vsto add-in. Get email sender address I have a VSTO Outlook 2007 add-in. I am trying to get sender e-mail address when new email comes to Inbox. To do it I use the following code: Th

28 Dec at 11:7

VSTO Tools: Office 2010 to 2013 upgrade

VSTO Tools: Office 2010 to 2013 upgrade I'm working on a VSTO tools project for Excel. I'm now in the process of upgrading my machine. My "old" laptop was running Windows 7 x64 with Office 2010 and Vi...

18 Aug at 22:16

Is there a way to access a Ribbon (XML) at run time?

Is there a way to access a Ribbon (XML) at run time? I'm working on a Word 2007 app-level add-in. So far, I haven't experienced major obstacles except for converting the add-in's Ribbon interface to X...

5 Aug at 18:44

Excel Interop - Efficiency and performance

Excel Interop - Efficiency and performance I was wondering what I could do to improve the performance of Excel automation, as it can be quite slow if you have a lot going on in the worksheet... Here's...

6 Feb at 09:21

VSTO - Is it possible to have both designer and XML ribbons?

VSTO - Is it possible to have both designer and XML ribbons? I'm working on an Outlook 2010 add-in that has multiple ribbons created with the Visual Studio 2010 ribbon designer. I've made an additiona...

20 Jun at 14:30

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

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 es...

Simple Example of VSTO Excel using a worksheet as a datasource

Simple Example of VSTO Excel using a worksheet as a datasource I think I'm running into a case of "the easiest answers are the hardest ones to find" and I haven't come across any searches that give th...

Cancelling Item_Open causes crash

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 proper...

27 Dec at 12:48

How can I add the images to button using the ribbon xml?

How can I add the images to button using the ribbon xml? How to add the custom images to the ribbon button in the tab and the context menu. I tried the link Adding Image to ribbon button but no luck :...

4 Feb at 04:35

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

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 ha...

4 Apr at 16:12

VSTO Word 2016: Squiggly underline without affecting undo

VSTO Word 2016: Squiggly underline without affecting undo I am working on a real-time language analysis tool that needs to highlight words to draw attention from the writer in Word 2016 using a VSTO a...

27 Nov at 13:14

Cannot perform runtime binding on a null reference - Empty Excel Cells

Cannot perform runtime binding on a null reference - Empty Excel Cells I cannot seem to think of a way to correct the error mentioned in the title and was looking for some ideas on what should be done...

30 Jan at 11:48

How to develop a Microsoft Office AddIn without Visual Studio

How to develop a Microsoft Office AddIn without Visual Studio I'm trying to develop an MS Office Addin in C# .Net and I don't have access to Visual Studio. Instead I'm using SharpDevelop as my IDE, (b...

7 Dec at 12:53

How to invoke an action during powerpoint slideshow programmatically?

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...

29 Jan at 12:58

Customizing Outlook Navigation Pane and Forms Outlook 2010

Customizing Outlook Navigation Pane and Forms Outlook 2010 I have two main issues I am trying to address and after a while searching haven't found what I need to achieve. I have created a custom Outlo...

CustomTaskPane in Excel doesn't appear in new Workbooks

CustomTaskPane in Excel doesn't appear in new Workbooks I've added a CustomTaskPane to Excel 2013 that lets users quickly search for photos. It works well and fine if the user only opens/creates one w...

3 Oct at 13:13

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

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 ot...

1 Feb at 09:53

Fastest way to interface between live (unsaved) Excel data and C# objects

Fastest way to interface between live (unsaved) Excel data and C# objects I want to know what the fastest way is of reading and writing data to and from an open Excel workbook to c# objects. The back...

1 Oct at 14:47

Hooked events Outlook VSTO continuing job on main Thread

Hooked events Outlook VSTO continuing job on main Thread I have developed an Outlook VSTO addin. Some tasks should be made on a background thread. Typically, checking something in my local db or invok...

How to mock rows in a Excel VSTO plugin?

How to mock rows in a Excel VSTO plugin? I am trying to put a mocked `Range` (which contains cells with values) inside the rows of a new `Range`. But when I try to access a specific element from the `...

1 Jun at 22:12

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

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](https://stac...

23 May at 11:46