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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

In VSTO, when cancelling the Item_Send event for a Meeting, the Appointment gets deleted from the inbox

In VSTO, I handle the Send event on a MeetingItem. When in the Outlook preview window, if I choose to "Accept-send response now" and set cancel=true when the send event fires, the send does ...
DomBat's user avatar
  • 2,003
0 votes
1 answer
49 views

How can I monitor the new email events of all local mailbox folders in Outlook?

I developed a vsto plug-in. Every time I run Outlook, I need to add new mail events to all folders in the local mailbox. What I expect is that this event will be triggered when the mailbox folder is ...
teleixi's user avatar
0 votes
1 answer
15 views

Stopping acceptance of a meeting invite in Outlook using VSTO in certain circumstances

I have a VSTO extension written in C#. If someone gets a meeting invite, they are able to accept in several differnet ways, for example by choosing the dropdown choice on the Accept button and choose &...
DomBat's user avatar
  • 2,003
0 votes
0 answers
47 views

is there any way to change author name, Author Initials in pptx file, using Microsoft.Office.Interop.PowerPoint

I'm currently working on a project using VSTO (Visual Studio Tools for Office). I'm adding comments from the backend to a PowerPoint (pptx) file using Microsoft.Office.Interop.PowerPoint. However, I'm ...
mahesh deshmukh's user avatar
0 votes
0 answers
18 views

Undo/Redo functionality in VSTO Excel add-in

I am developing an Excel add-in using VSTO (Visual Studio Tools for Office) in c#. I have a custom ribbon which contains custom buttons. Some of the buttons trigger callback that change the content ...
FAF's user avatar
  • 113
0 votes
1 answer
46 views

New minimized ribbon in outlook 365

I am working on a VSTO project which is almost done, but I cannot find any documentation about a specific thing. The Addin has currently 1 big button (on the left) and 2 small ones (on the right) in ...
anahimself's user avatar
0 votes
0 answers
25 views

In Outlook VSTO development, how to obtain the EntryID of the currently replied/forwarded email based on the draft reply/forwarded email?

In Outlook VSTO development, I would like to know how to obtain the EntryID of the currently replied or forwarded email based on the Outlook.MailItem object of the obtained draft email in the scenario ...
teleixi's user avatar
0 votes
0 answers
18 views

Can Outlook add-ins made with Office.js monitor incoming mail?

So we are consider migrating a moderately complex Outlook VSTO add-in to Office.js to make it cross-platform. I have been reading for some time, but things appear to be convoluted. Specifically I have ...
dotNET's user avatar
  • 33.8k
0 votes
1 answer
24 views

Outlook VSTO - What is the win32 hook that I need to intercept when the email subject is changed in the email list preview area?

I have an VSTO Outlook Add-in and I am on the need to detect when subject changes on the email list preview area in order to do some stuff at that point. So what win32 hook do I need to attach to?
Willy's user avatar
  • 10k
0 votes
0 answers
17 views

Adding WPF Page file type in Excel VSTO project

I am building Excel VSTO project as Excel add-in. I made new form which hosts UserControl. This user control should contain two pages (nested in Frame), so I can navigate between them, however it ...
Davor Cacic's user avatar
0 votes
1 answer
44 views

how to add button in outlook mail body right Click context menu?

I want to add button in outlook mail body right lick context menu in vsto C# add-in how it possible. this button get selected text from mail body in read mode. like this screenshot see screenshot I ...
M Јǚйáĩď's user avatar
0 votes
0 answers
24 views

How can I add custom right click option in Outlook VSTO Plugin?

In my mailbox I will select text and right click on context menu there will be custom added option 'go'. And there will be an event handler attached with go button to perform operations on selected ...
Muhammad umer's user avatar
-1 votes
1 answer
23 views

How to get custom buttons working in Excel with VSTO

I am having a go at creating an Excel add-in with Visual Studio, however I cannot get the buttons to work. I have added buttons as such... ExcelToolsRibbon.xml <?xml version="1.0" ...
Grant McConville's user avatar
0 votes
1 answer
24 views

VSTO Add-Ins Keep Disappearing From Excel

everyone. I'm working on a project that involves VSTO add-ins for Excel, using C# as the programming language. On one computer, the add-ins keep disappearing without any apparent reason. Every day, ...
Kareem Sulthan's user avatar
0 votes
0 answers
11 views

vsto and manifest files are not created from the command line

I have 2 different old c# VSTO projects from VStudio 2010 for Excel add-ins. Both projects are compiled in VStudio 2010 and create 4 files each: .dll, .pdb, .vsto, .manifest. Both projects compile and ...
BobD's user avatar
  • 11
2 votes
0 answers
124 views

Outlook VSTO addin not calling linux APIs, but same code running in console app

I have created a Outlook VSTO addin using C#. This addin is supposed to call some APIs which are running on my company server. The APIs are hosted on Ubuntu, as fastapi behing nginx. Whenever I try to ...
Sandeep Bhutani's user avatar
0 votes
1 answer
46 views

Accessing 'Document Library Properties' in Word VSTO AddIn: Retrieval Outside of SharePoint

I am currently developing a VSTO AddIn for Microsoft Word using VB.NET. My primary goal is to access the "Document Library Properties" of Word documents. It's essential for my project to ...
Eliah Thommen's user avatar
0 votes
1 answer
51 views

VSTO Word Add-Ins No Longer Run Successfully

I have multiple Word add-ins that have been installed and successfully ran in the past but now using those same installation files, they have encountered the same runtime errors. As a control test, I ...
John's user avatar
  • 23
0 votes
1 answer
34 views

VSTO C# Word Add-In, I can't figure out how to get a wild card find and replace to not replace text outside of a table

I am trying to ignore text outside of a table and not have it commented or replaced and only find and replace if inside a table. The correct behavior should be to replace the word [Pp]ounds to lbs. ...
Salvatore Allegra's user avatar
0 votes
0 answers
32 views

Why this code permanently delete not move to junk folder? VB.NET VSTO Outlook Add-In

objSelection = Globals.ThisAddIn.Application.ActiveExplorer.Selection objJunkFolder = Globals.ThisAddIn.Application.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderJunk) ...
Tanakrit Chanplakorn's user avatar
0 votes
0 answers
22 views

In Outlook Addin, how do I determine that an email's Sender is a shared mailbox when AutoMapping is disabled?

In a previous question, I had asked something similar and received a solution: https://stackoverflow.com/a/69879763/3526156 However, I found out recently that this solution will not work if the user ...
John Evans Solachuk's user avatar
0 votes
0 answers
29 views

Add richtextcontentcontrol from word document throw exception

I try to add a richtext content control to my word document but the richtext content control object is faulty and I am not able to apply for e.g tag to this object the code to add a richtext content ...
user7112196's user avatar
0 votes
1 answer
55 views

custom context menu command doesnt appear for outlook contacts

I'm struggling with a problem and I really hope you can help. I last developed software around 20 years ago and worked mainly in structured BASIC, with some minor work with VBScript in the past few ...
lewinr's user avatar
  • 1
0 votes
0 answers
46 views

Anyone having clipboard issues with VSTO and Windows 11 update KB5031354?

Since the update, any attempt to access the clipboard directly after use by an Office program triggers the error 'Error HRESULT E_FAIL has been returned from a call to a COM component.' Before the ...
Lyndon Brooke's user avatar
0 votes
1 answer
37 views

VSTO and html body in outlook mailitem

I am currently working on a VSTO project and modifying the HTML content of a mailItem (HTMLBody). After modification, the original HTML + mod is then converted to the infamous WORD HTML (with loads of ...
anahimself's user avatar
0 votes
1 answer
41 views

C# VSTO | Word crashes when attempting to access the properties of any Shape when ModernComments are enabled in Office365

I have a VSTO addin for Word, where one of its functions is to set CustomDocumentProperties and then refresh all Fields inside a Document. Fields inside a Document can be in the main text of the ...
Andre_IRIS's user avatar
0 votes
2 answers
47 views

How to get the EntryID of a mailitem that is encrypted

In a VSTO Outlook C# addin I want to loop through a folder of items that are all encrypted mailitems and get the EntryID or MAPIOBJECT as I plan to send it on to extended MAPI. foreach (object ...
darbid's user avatar
  • 2,578
0 votes
1 answer
45 views

How to set PR_HTML where string contains Unicode characters

In a VSTO C# Outlook addin I am copying the OOM HTMLBody text from one message and then adding it to a new message via PR_HTML with either IMAPIProp::SetProps or IMAPIProp::OpenProperty. I need to ...
darbid's user avatar
  • 2,578
0 votes
1 answer
43 views

How to select an Outlook MailItem after it has been moved

In a C# VSTO Outlook addin I am moving a MailItem to a folder. I have tried the following code which already has a reference to the destination folder (olFld) and to a valid id (entryId) string. olNS =...
darbid's user avatar
  • 2,578
1 vote
1 answer
34 views

How to include the employee's multiple work hours with dates on the task using vsto add-in for microsoft project

In my vsto add-in for Microsoft Project, following code is not including the all work hours which i have defined at variable 'entryDates'. Because, Inside the loop, existing assignment is updating ...
sridharnetha's user avatar
  • 2,158
0 votes
1 answer
25 views

Are some MAPI named properties known and thus always return the same Tag when using GetIDsFromNames with MAPI_CREATE?

In my c# VSTO Outlook project I am using the GetNamesFromIDs to get a property name from one message and then adding it to a second message with GetIDsFromNames with the MAPI_CREATE flag set so that ...
darbid's user avatar
  • 2,578
1 vote
1 answer
50 views

How to import the employee's work hours to TimeScaleData in microsoft project file using vsto add-in

How to import the employee's work hours to TimeScaleData in microsoft project file using vsto add-in? Here is the sample data I have, [{Name:"Phase 1", BaselineStart:"2023-01-01", ...
sridharnetha's user avatar
  • 2,158
0 votes
1 answer
183 views

How to Convert Existing COM and VSTO Add-ins for the New Outlook on Windows

This includes three initial questions regarding moving from existing COM, VSTO, and stand-alone EXE apps to the New Outlook on Windows web add-in environment. I have three primary questions to start ...
Al_C's user avatar
  • 3
2 votes
0 answers
63 views

How to get Outlook Property Names using extended MAPI GetNamesFromIDs

I am trying to view property names from an Outlook message using extended MAPI, ie the contents of a MAPINAMEID structure. I get a list of property tags for a message and then I am passing the below ...
darbid's user avatar
  • 2,578
0 votes
1 answer
46 views

How can i get mailItem when replying to an email?

I wrote an outlook vsto addin that converts files added via the button on the ribbon into links. First, I click on the create link button on the ribbon and select the files to be uploaded. Then I ...
dare233's user avatar
0 votes
1 answer
38 views

VSTO Outlook Plugin - How to identify if meeting/appoinment in my calendar is through .ics file or received an invite

I get three types of .ics files generally when do registration for training / conferences. Appointment Meeting without any participant (Just see organizer's name after saving it to my calendar) ...
ManojP's user avatar
  • 87
0 votes
0 answers
33 views

VSTO: CustomTaskPane Header Color change

enter image description here How can I make the Custom Task Pane Header Color more match the inner usercontrol ? I already google this problem ,these are the search results: (1) Add-in Express 【Third-...
cfy-cfy 's user avatar
0 votes
0 answers
25 views

Excel VSTO Workbook in Onedrive/Sharepoint

Do you know how to save an Excel VSTO Workbook project on a OneDrive or a sharepoint? I would like other people to be able access to the Workbook and modify it. For the moment I'm stuck as I keep ...
BriceD's user avatar
  • 1
0 votes
0 answers
11 views

Copy Resource File to Directory - VSTO - VB.NET

I want to copy a Bitmap file from the Resources in my VSTO Excel Add-in project to a directory on the end user's hard drive. I want to copy the MyResourceBitmapFile Bitmap file to the "C:\...
Jim Denny's user avatar
0 votes
0 answers
34 views

VSTO: How can I Drag the "Excel RibbonBox" position?

I can't drag Box5 under Box1 . And don't know why When I add a new box, it always default insert into top. I already tried to google this situation, not working. And the visual studio RibbonBox ...
cfy-cfy 's user avatar
0 votes
2 answers
31 views

Can't delete all comments in VSTO C# Word Add In

I'm trying to loop through all comments in a Word Doc and Clear all the comments that contain a substring of "CME" in the comment text. The application is a VSTO Add-In written in C# and it'...
Salvatore Allegra's user avatar
0 votes
1 answer
11 views

Outlook VSTO Add-in Get BCC Recipient

If I have an Outlook MailItem and I call an Outlook VSTO add-in on it as a user that was bcc-ed onto that email, is there a way to retrieve that users email address? It doesn’t show up in the MailItem’...
bobglu's user avatar
  • 63
0 votes
1 answer
18 views

How can reload display of Ribbon in VSTO?

I want display Button2 while Button1 processing. This is my code: I using Application.DoEvents() , But it can't Private Sub Button1_Click(sender As Object, e As RibbonControlEventArgs) Handles ...
D T's user avatar
  • 3,572
0 votes
1 answer
26 views

Add Outlook.ItemsEvents_ItemAddEventHandler to all Stores

I'm in the process of creating an Outlook addon that triggers an event when a new email arrives in an Inbox. But my profile has multiple Stores of multiple types so in my loop through all stores I ...
Leon's user avatar
  • 5
0 votes
1 answer
38 views

How do I extend or derive from the RibbonToggleButton created by the Microsoft RibbonFactory?

How do I extend/derive from RibbonToggleButton in this scenario? I have a Microsoft Word VSTO add-in. My goal is to create a "custom" class MyRibbonToggleButton that extends or derives from ...
VA systems engineer's user avatar
0 votes
0 answers
35 views

An exception occuring while creating summary task and task information in Microsoft Project via Add-In using VSTO

In my VSTO(Visual Studio Tools for Office) Add-in for Microsoft Project, I'm getting this error: System.Runtime.InteropServices.COMException: 'The argument value is not valid.' I am trying to Add ...
sridharnetha's user avatar
  • 2,158
0 votes
0 answers
23 views

How to modify a ribbon in an C# Outlook VSTO Addin at runtime

I need to modify visibilty of some controls in my ribbon (visual designer). This works fine while the ribbon is shown in the main Outlook window, but when it's shown in the mail read window, I can't ...
404_username_not_found's user avatar
0 votes
1 answer
26 views

Visual Studio Setup Project with VSTO Addin

i've followed this Guide to create a Installer for a Office (Word) VSTO Addin: https://learn.microsoft.com/en-us/visualstudio/vsto/deploying-a-vsto-solution-by-using-windows-installer?view=vs-2022 The ...
Oliver Karger's user avatar
0 votes
0 answers
13 views

How works email preview in Outlook?

I am currently working on a VSTO project and looking to understand how Outlook displays the "peek preview" in the explorer view.. enter image description here Apparently, it is not always a ...
anahimself's user avatar
0 votes
0 answers
17 views

Detect information about active SharePoint-shared Word document from VSTO add-in

There is a Word document on SharePoint. A user has it open in the desktop Word app, which has a VSTO add-in installed. Is it possible to detect any of the following from the VSTO add-in?: The path of ...
Peter Dongan's user avatar
  • 1,996

1
2 3 4 5
133