6,694 questions
0
votes
2
answers
105
views
Word Range.Find gets stuck in same table cell when searching hidden text and adding comments
I am writing a function to find hidden text in a Word document and tagging them with comments. I am using Word find to do this.
When a hidden text is found inside a table, after the comment is ...
0
votes
0
answers
83
views
async function not executing via Word dynamic menu ribbon button
I have a dynamic menu button in our custom VSTO ribbon. I am loading content to it at runtime. That process is working fine. Dynamic drop down is creating fine. this is the code.
In Ribbon.xml
<...
0
votes
0
answers
37
views
New VSTO Word Add-In unable to start word
I created a new C# VSTO Word-Add in (Framework 4.8.1) in Visual Studio 2022.
Made no modifications at all and then tried to start it (F5), but it ends with this error message:
-------------------------...
0
votes
1
answer
63
views
How to detect nested groups in PowerPoint using VSTO (C#)?
VSTO is unable to capture nested groups within PowerPoint slides.
For example, consider this structure:
Group1:
├── Group2:
│ ├── Rectangle1
│ ├── Rectangle2
│ └── Line (connecting ...
1
vote
1
answer
56
views
How to Access Active Page Filters in Excel PivotTable using C# Excel Interop (VSTO)?
I understand that when there is only one filter active, I can easily obtain its value by accessing the cell adjacent to the page filter. However, when multiple filters are applied, Excel displays this ...
1
vote
1
answer
52
views
Outlook classic (vsto): Identifier of context menu of appointment in reminder window
I would like to add an item to the context menu of an appointment in the reminder(s) window in outlook classic:
Is this possible in a VSTO add-in, and if so, what is the identifier of the context ...
0
votes
0
answers
75
views
Word Interop Find.Execute() modifies the source Range object to a undesired value
I'm using Word Interop Libraries to identify bold text in a Word document and add comments to those sections. However, while running the code, I noticed an issue(from the Word UI): when a bold part or ...
0
votes
2
answers
119
views
VSTO Outlook Add-in: SDK-style Project Works with Direct Install but Fails with WiX MSI
Problem Summary
I have a critical issue with my SDK-Style generated VSTO Outlook add-in when deployed via WiX MSI installer. The same VSTO files work perfectly when installed directly (double-click ....
0
votes
0
answers
65
views
Issue with UndoRecord.StartCustomRecord in VSTO add-in: Undo stack breaks after bullet/numbering
I am using UndoRecord.StartCustomRecord in Microsoft.Office.Interop.Word to create custom undo records in my VSTO add-in. However, I’ve encountered some unexpected behavior that makes the Word undo ...
3
votes
1
answer
171
views
VSTO Outlook Add-in: SDK-style project fails to generate .vsto and .dll.manifest files despite successful compilation
I'm trying to convert a classic VSTO Outlook add-in project to SDK-style format while maintaining full VSTO functionality. Both csproj project files compile successfully and produces a working .dll, ...
-4
votes
1
answer
100
views
Using .NET how would you set a CheckBox to true within an array?
I have populated a column of check boxes, and attempted to set the value of them to true like so:
worksheet.CheckBoxes("Check").Value = True
This is my code:
Public Sub ...
0
votes
1
answer
73
views
Replace multiple spaces with single space using Word Find Replace with track changes on
I am implement a function to do below two tasks. User have the ability to either run both or run a single task only (handle via check boxes).
Task 1 : Replace multiple spaces into a single space on a ...
0
votes
1
answer
55
views
Prevent VSTO .msi installation if Word is running (check winword.exe)
I'm developing a VSTO add-in for Microsoft Word and packaging it using a .msi installer (Visual Studio Installer Project). Before proceeding with the installation, I want to ensure that Word (winword....
0
votes
1
answer
91
views
programmatically Enable "Always Use These Values Regardless of Sign-in to Office" in MS Word API
TL;DR:
I want to programmatically enable the "Always use these values regardless of sign-in to Office" setting found in File > Options > General in Microsoft Word. Does any Word API ...
0
votes
1
answer
73
views
how to identify "Comments" button VSTO identifier in windows word document
I have VSTO Addin in word document, and I want to identify the "Comments" button that is displayed on top right corner of the word document. provided a screenshot for reference.
The comments ...
0
votes
0
answers
79
views
Correct use of HttpClient for a VSTO addin
I recently updated and migrated my backend from SOAP WCF to a REST API (C#). This backend is utilized by an Outlook add-in (desktop version) to save documents, including emails and attachments, to a ...
0
votes
1
answer
55
views
Error : Reference in the menifest does not match the downloaded assembly PorjName.WPF.exe in Click Once VSTO VB.Net application
Project structure:
Solution
VSTO Project (Added WPF project as reference)
WPF Project
I got this error while installing VB.NET VSTO addin project which is created usng ClickOnce approch.
I've checked &...
0
votes
1
answer
62
views
Outlook/VBA/VSTO: How can I set the folder to store e-mail after being sent?
I created an automation script that's creating e-mails from a template e-mail file (.oft) and saving them to the Drafts folder for me to eventually send them manually.
In Outlook I set an option to ...
0
votes
1
answer
475
views
C# VSTO/ClickOnce: unable to load dll msalruntime
I have a C# Excel VSTO addin which runs properly launched from VS, but fails to work when published with ClickOnce.
MSAL.Desktop.4.62.0.0.MsalClientException wam_runtime_init_failed
Microsoft....
0
votes
0
answers
55
views
Getting information from the RESOURCE USAGE view
I have this code in VB .NET and VSTO that accesses a MS Project file and exports the information from the RESOURCE USAGE view to Excel, but when taking the information about the work distributed over ...
1
vote
1
answer
61
views
Importing Task Usage view data to Excel
I'm developing a code that allows me to access the TASK USAGE view of any Ms Project file, and to be able to import that information to an Excel file.
I'm using VB .NET and VSTO, accessing through the ...
0
votes
2
answers
60
views
Excel VSTO/VBA Events for opening Backstage window in Excel
does any one know if there is an event some other trigger for the opening of the Backstage window? I tried already using the ribbonUI, and am currently looking for windowhooks on childwindows in Excel....
0
votes
1
answer
101
views
VSTO recipient X400 address
Currently I am experiencing a rare issue, where the Outlook recipient object does not seem to contain the SMTP information of a user. Only the X400 information is available, very difficult to ...
2
votes
0
answers
70
views
VSTO/VBA Excel; get the scrollbar position (or delta) from the gridview
I am looking for a way to get the delta, percentage or position of the scrollbar in pixels or points if a user moves around the worksheet.
But Excel only gives the position of the scrollcolumn/row of ...
0
votes
1
answer
49
views
How to read emails in Outlook
I tried to read emails from an email Outlook account in a .pst/.ost file. The code is as follows.
Outlook.Application myApp = new Outlook.Application();
Outlook.NameSpace mapiNameSpace = myApp....
0
votes
1
answer
130
views
How to prevent a user from inserting/deleting Excel columns in C#
I am managing an Excel VSTO add-in that works on specific files and does not support inserting/deleting columns.
I would like to prevent the user from being able to do so in order to secure data in ...
0
votes
1
answer
87
views
How to Increase ribbon button image size in vsto Excel addin
I have built a VSTO Excel addin with a simple button. I added an image to the button, but the image size in excel is always small:
I cant find a way to increase the image size, I would like the ...
0
votes
0
answers
71
views
Unable to add signature only once when replying to emails in a VSTO Add-In
I am working on a VSTO Add-In for Outlook where I need to add a signature to an email when it is ready for composition. Specifically, this should happen only once when the email is opened for replying ...
0
votes
2
answers
122
views
Add Signature while replying using Selection c# vsto addin
I am new to C# VSTO Add-In development and am trying to add a signature at the cursor's location. However, I'm unable to insert HTML and can only add plain text. How can I append HTML instead?
I tried ...
1
vote
0
answers
67
views
How to get a clear visual of my WPF hosted control in an Office Custom Task Pane when Windows scaling setting is more than 100%?
I am developping a VSTO Add-In for Microsoft Office using C# and WPF. The framework is .NET framework 4.8.
The Add-In consists of several buttons in the ribbon and several task panes that can be ...
0
votes
0
answers
33
views
Custom Shortcuts in VSTO Addin - Application.OnKey: procedure call throws an error: "macros disabled or not available in the workbook"
I'm creating a VSTO Excel Add-in using VB.NET. I am trying to create custom shortcuts. Application.OnKey function has 2 inputs: key and procedure, I entered "^q", which means Control + q. In ...
0
votes
0
answers
62
views
Feasibility of Creating a Ribbon Button Add-in for OneNote Desktop with Custom UI (C#)
I'm exploring the feasibility of implementing the following use case in OneNote Desktop (M365 2410) and would appreciate your insights. Unfortunately, I couldn't find sufficient information in the ...
0
votes
0
answers
23
views
Manually Changed APP.CONFIG Not Reflected in APP
I have a Vb.NET VSTO project that has one setting in an App.Config file. Let's say the string setting is named TestSetting. I publish and install the project. When the application is not running, I ...
0
votes
1
answer
53
views
Monitoring all sent items folders in add in
So I have an add in that monitors the sent items folder and uploads emails to an azure storage when a new item hits it, if it meets certain criteria.
my issue is that it only works on the default ...
0
votes
1
answer
62
views
Is that possible to reload the third-party Outlook VSTO add-in by program means or make the wrapper add-in triggering configuration reload?
I'm developing the Outlook VSTO add-in that interacts with the third-party Outlook VSTO add-in.
The third-party Outlook add-in is stateful and I can't force it to reload its configuration that was ...
0
votes
0
answers
79
views
Why will my Excel VSTO Add-In only load If Excel is run under Administrator
I have an Excel VSTO add-in which utilises nlog. The nlog.config file is stored in the following folder:
C:\ProgramData\Company Name\Historian Client\Config
If I run Excel as non-admin, the Add-In ...
0
votes
1
answer
79
views
Re-encrypting a mailitem using property accessor
I need to decrypt a mailitem, save it as .msg, then re-encrypt it, so the original mail seems unaltered.
OUTLOOK VSTO ADDIN C#
// Decrypt the mail item
const string PR_SECURITY_FLAGS = "http://...
0
votes
0
answers
48
views
PowerPoint SlideZoom - Check on Shape
I like to check if there is a slide zoom object on a slide to set the property "Return to zoom" for all the "Slide zoom objects".
I saw this article - where they say, there should ...
2
votes
0
answers
61
views
How can I tell whether or not user has the new MS Office visual style?
I make a c# add-in for an MS Office desktop app. It uses WPF for front end UI. I want the background of the forms in the add-in to match the Office app colors.
Microsoft recently launched a brand-new ...
0
votes
3
answers
452
views
Is there a method for creating Hyperlink without setting the hyperlink style
I am looking for a way to set an hyperlink a cell, but without setting the hyperlink style. so basically keep the existing cell formatting.
I know you can set another style, but the original ...
0
votes
1
answer
59
views
Outlook screen flickers when I edit the html body of a mail in mail.open event
I am currently trying to edit the html body of a mail item in the mailitem.open event. This works fine with rather short mails, but the longer the mail itself the more the screen flickers until it's ...
1
vote
1
answer
45
views
c# VSTO outlook - event save and check meetingitem body
I am using the following code when creating a meeting in outlook
private void ThisAddIn_Startup(object sender, EventArgs e)
{
//other code
Application.ItemSend += Application_ItemSend;
}
...
0
votes
1
answer
88
views
Is there a way to use DirectDependents to indicate whether cell is dependent from other sheet
When you have a dependent in Excel (1), so cell is used by formula on other sheet, it shows it with an icon (2). Now I was wondering if that's also possible via code.
I have tried using range....
0
votes
1
answer
46
views
Outlook VSTO add-in get complete original email (headers, body, attachments) as sent by SMTP
Is there a way to get the complete original email message as sent in SMTP DATA?
I can get Outlook email body and bodyHTML, and I can get email headers with PR_TRANSPORT_MESSAGE_HEADERS.
Looking for eg:...
1
vote
0
answers
31
views
How to store PowerPoint Shape in OpenXML?
I have created a VSTO AddIn in C# - with a ribbon and a taskpane. My goal is, to store some manual created shapes in the POTX which I can read out from my AddIn and provide to be inserted in a slide.
...
0
votes
0
answers
33
views
How to get a ContactItem with an Exchange formatted X509 email address?
I'd like to get an Outlook ContactItem using Exchange formatted X509 email address (a string). Is it possible or not?
0
votes
4
answers
84
views
How to write to worksheet during add-in unload (shutdown)
I have an Excel VSTO add-in written in vb.net. I want to write a message to the active workbook and active sheet when the user unloads the add-in. I get a COMException HRESULT: 0x800AC472 when I try ...
0
votes
1
answer
55
views
Outlook VSTO (C#) mailItem.GetInspector.WordEditor returns the wrong email body after some number of email
I am trying to write a scrip in VSTO that can export attachments and the email (as pdf)
The goal is to export the pdf which has the same information as when you print to pdf (aka it should include ...
1
vote
7
answers
269
views
Fastest method to get all single cell addresses from a range
I need a very fast method to get an array or a list of all cell addresses in a range. So Suppose i have a range "A2:B4" I need an array A2, A3, A4, B2, B3, B4. Now i can do this by looping ...
0
votes
1
answer
101
views
How to access "page setup" properties in Visio using VSTO
Can anyone help me out with the above issue?. I have checked the Visio VSTO websites and could not find any codes that accesses the needed page properties.
I need to access the "page setup" ...