6,690
questions
0
votes
1
answer
13
views
Word VSTO ThisAddin class errors
I have dozens of errors in the generated file ThisAddinDesigner.vb and don't know what caused them. The operational symptom is that 'Application' is not a member of 'ThisAddIn' wherever this is relied ...
0
votes
0
answers
10
views
Error when creating a project using Word VSTO Template
[![enter image description here][1]][1]I receive the following exception when creating a project using the Word VSTO Template in Visual Studio 2022.
Microsoft Visual Studio
Exception from HRESULT: ...
0
votes
0
answers
8
views
VSRTO Outlook. Response to meeting invitation
I am developing a plugin for outlook using c# vsto. When i send the invitation it works properly as i need. Here is the my code.
private void ThisAddIn_Startup(object sender, EventArgs e)
{
...
0
votes
0
answers
43
views
How to solve error "AADB2C90011" when using a custom signup user flow in Microsoft Entra?
I am creating a VSTO plugin in VB.net. I would like allow users to sign-up and sign-in, using their Microsoft Office account.
So I turned my attention to MSAL (in VB.net) and to Microsoft Entra (its ...
0
votes
1
answer
15
views
HeaderFooter enumeration fails in VSTO application when processing Compatibility Mode docs
I have created a C# MS Word VSTO add-in in Visual Studio 2022 that loops through the footers in documents and injects a text box and field code into the footers of different sections. This code works ...
0
votes
1
answer
23
views
How to lock certain excel cells with excel interop from vSTO
I am developing a VSTO add-in. This add-in generates one new sheet _worksheet, which has certain cells that the user should not be able to change.
For example, cell AV27 holds some information that ...
0
votes
0
answers
13
views
Repurposing of Office commands not working
I'm trying to repurpose a built-in command using the following XML, but it doesn't appear to be call the onAction callback function:
<?xml version="1.0" encoding="UTF-8"?>
&...
0
votes
1
answer
15
views
How to implement an screen updating switch off for Outlook (vsto add-in)?
While processing mailItems, an add-in opens and closes the mailitems and creates a visual pollution. As far as I found out there is now such method for Outlook. I tried:
newItem.Display(false);
...
0
votes
0
answers
28
views
How do I get the current screen of my Word application in C#
I am using Visual Studio 2022 and I have created a VSTO Word Add-In project.
I want to open a new form with a button inside my ribbon. However, my form always starts in the top left corner of my ...
0
votes
0
answers
31
views
How to read a SharePoint list in 2024 (.net VSTO)
I’m trying to write a small VSTO for Office365 (PowerPoint desktop). When the user clicks a button on the ribbon, it will read a SharePoint list as the current Office user, then display some details ...
-1
votes
0
answers
43
views
How to programmatically disable spell checking in PowerPoint from C#
I want to disable spell checking on a PowerPoint slide from my C# VSTO program.
My program has this line of code:
shape.TextFrame2.TextRange.LanguageID = MsoLanguageID.msoLanguageIDNoProofing;
...
0
votes
0
answers
9
views
How do I turn on Auto Scheduling for the Microsoft Project Application when a new project is created or when I open an existing project?
I'm trying to turn NewTasksStartOn for Microsoft Project on the event of a New Project or Existing Project, but am getting the error (Public member 'NewTasksStartOn' on type 'ProjectClass' not found. ...
0
votes
2
answers
32
views
Handling Word After Save Event for Documents Saved to SharePoint or OneDrive in VSTO AddIn
I implemented the Word After Save Event by DAVID E. CRAIG in my VSTO Word AddIn in C#.
I need the AfterSaveUiEvent to update a dictionary that contains some information about the document. The key to ...
0
votes
1
answer
60
views
Excel workbook created with VSTO does not execute buttons after save
So I did the following steps:
Prepared an Excel VSTO Add-in, where the add-in creates two excel sheets and positions several buttons on those two sheets. Each button can have trivial or non-trivial ...
0
votes
0
answers
82
views
AcquireTokenInteractive does not show the login window in MSAL .NET
Currently our project uses a VSTO addin projects for Office Applications. On addin load, we are trying to make the authentication. The authentication code is in a class library project (on .NET 4.7.2)....
0
votes
0
answers
18
views
In VSTO C# development of a Word add-in, Word automatically generates a DLL copy
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
MessageBox.Show(path);
...
0
votes
0
answers
34
views
How to customize a button's icon using with idMso in vsto add-in C#?
I have created a VSTO Add-in project in C# (Office Word). I want to create a ribbon (XML) that runs built-in idMso commands, but I would add a customized icon for the ribbon controls.
<?xml version=...
2
votes
3
answers
66
views
Add new button to worksheet with Excel Add-in
I am trying to programatically add a new button to worksheet.
I have create a new button in ribbon. On click, that button should create a new button on the worksheet and assign some macro/...
0
votes
0
answers
22
views
Excel VSTO Add-In: Task Pane Not Displaying When Button Clicked
Question: Excel VSTO Add-In: Task Pane Not Displaying When Button Clicked
I am a beginner Excel programmer. I successfully created a customized Excel ribbon (COM-AddIn) that loads into excel. It was ...
0
votes
0
answers
8
views
Powerpoint Vsto Addin not closing powerpoint application
Application.Quit is not working from inside powerpoint VSTO Addin.
I checked it also with an empty project with one button and one event:
private void button1_Click(object sender, ...
0
votes
0
answers
20
views
Where do i submit VSTO addin for distribution
I have created a powerpoint VSTO addin and wish to distibute this addin to the public.
I have created MSI installer and submitted to Microsoft Store.
The reviewers rejected with the message "The ...
0
votes
0
answers
26
views
Trigger a Ribbon Mso from code behind in Office Word Add-in C#
Through a Microsoft.Office.Interop.Word.Application object, i want to execute the "InkHighlighter" mso after i opened a document, but if i try to execute it, i get the following error:
"...
0
votes
1
answer
23
views
C# VSTO outlook creating meeting without invation
I am developing an addin for outlook. Is there any way to create a meeting without sending an invitation via outlook to all meeting participants?
0
votes
1
answer
80
views
Copying format restarts a custom undo record
I'm developing a Word add-in using VSTO and faced an issue with a custom UndoRecord. The problem appears when I use the CopyFormat method between the StartCustomRecord and EndCustomRecord method calls....
0
votes
1
answer
40
views
Use regular expressions to modify all headings in a Word document
I am using Office 2013 and I want to use regular expressions to modify all headings in a Word document by removing the part before the heading that consists of numbers, spaces, and punctuation. For ...
0
votes
0
answers
46
views
VSTO VB OnAction doesn't activate
I'm creating a VSTO VB On Visual Studio for MS Visio. I have created a Ribbon with buttons, all works well then I've made a DropDown and I want to get back the selected Item. So I created the OnAction ...
0
votes
1
answer
24
views
VSTO - C# detecting WPM inside Ms. Word
I recently use the step by step given from the Microsoft Website.
But unfortunately they didn't mention about the way how we could detect every buttons pressed from the user input while typing inside ...
0
votes
1
answer
47
views
Simultaneous access to the file by many computers from VSTO
I have about 20 comps using my VSTO add-in in MS Word working in local network.
I have to write some statistic from this machines in one xml file common for all of them placeed in shared folder.
How ...
0
votes
0
answers
15
views
Outlook VSTO - Setting the synchronization period
I am making an outlook add-in using c# VSTO, and I need to make a change to the settings in the window in the image
I found out that these settings are stored in the outlook.src file. But the content ...
0
votes
0
answers
13
views
MS365 Word Add-in - Search for text ranges throws InteropServices.COMException (0x800A16C9) "An error occurred while saving the undo information"
these are the lines of code I use:
#region FindRanges
/*
* Erstellt eine Liste aus Ranges wo überall das gesuchte pattern vorhanden ist.
* Der Bereich der Range ist immer von Parent bis nach ...
0
votes
0
answers
44
views
MS365 Word Add-in - pdf export failed with InteropServices.COMException (0x80004005)
I use these lines of code in my VSTO C# AddIn to export the current document as PDF/A.
//Create path for PDF
String pathPDF = DocumentHandler.Document.FullName;
pathPDF = System.IO.Path....
0
votes
0
answers
26
views
How can I remove an Excel worksheet from a VSTO project after the project has been created?
I created a VSTO Excel document project from an existing Excel file.
In that Excel file there is a workbook containing two worksheets.
Now, I want to remove the second worksheet from the project, but ...
0
votes
1
answer
37
views
Creating custom Fields in MSWord - Determining where a VBA to C# conversion is going wrong
I've been converting VBA to other languages for years, this is the first time I've been completely stumped. In this case, it's a Word VBA project being converted to a C# VSTO application.
Let me start ...
0
votes
1
answer
40
views
TopMost WPF style MessageBox
In my VSTO Excel Addin application I wish to show a Systems.Window.MessageBox as TopMost window when the user attempt to close any opened workbook - just like Excel does if you try to close a workbook ...
0
votes
0
answers
14
views
Add button at runtime with Excel VSTO Workbook
I can find numerous resources that explain how to dynamically add a button to a sheet in a Excel VSTO Add-in project. Something like this should work:
Private Sub AddButtonToSheet(ByVal sheet As Excel....
0
votes
1
answer
47
views
System.EntryPointNotFoundException after NugetUpdate
I get an error:
System.EntryPointNotFoundException: Unable to find an entry point named 'SIfcfad09d1b0a60ec' in DLL 'SQLite.Interop.dll'
I got it after an update in SQLite to version 1.0.118 in an ...
0
votes
0
answers
48
views
VSTO Binding redirect not working in Excel Addin deployed
We are working in a VSTO Addin Excel project, with many dependencies references.
We also have an Setup Project for create installer for this project.
When we deploy the project using the installer the ...
1
vote
0
answers
12
views
Even After calling "AddFontResource" api, that font not not available in application like MS PowerPoint
`For using new font in MS PowerPoint, we used following code. But, even after this code execute successfully, that newly added font not available in application like MS PowerPoint.
We called ...
0
votes
0
answers
12
views
What Triggers a VSTO Customization to load
We have some spreadsheets as part of a system, that when first loaded on a PC prompt if you would like to install the corresponding VSTO.
After the VSTO loads we have an extra tab in the ribbon that ...
0
votes
0
answers
32
views
GitHub action fails for the .NET standard project after migrating from packages.config to PackageReference
I am working on a VSTO application created with .NET framework 4.7.2. The solution contains multiple projects (.NET standard project) and recently we had to convert one project's packages.config file ...
0
votes
1
answer
38
views
Type Conversion in VSTO VB.NET from Range to Range?
I have a VSTO Excel project with the following code:
Dim start_row As Integer = 5, start_col As Integer = 1
Dim start_cell As Range = Cells(start_row, start_col)
Hovering the Cells function gives it ...
0
votes
1
answer
31
views
VSTO Outlook: Using IOlkAccountManager to manage accounts operations
I have tried to detect accounts addition from Outlook without success. Here it is my previous post.
I have heard something about the interface IOlkAccountManager so I have tried to implement it but it ...
0
votes
1
answer
22
views
Error when using TaskDialog in Excel VSTO application
I have Excel VSTO Workbook project and am using TaskDialog (from WindowsAPICodePack). On my home computer TaskDialog does work, but on my work computer I get the following error:
I know that I need ...
0
votes
1
answer
70
views
VSTO Outlook: handle when new account added
I'm trying to detect when a new account or store is added in Outlook using VSTO (Visual Studio Tools for Office), but I'm encountering issues with event triggering. Here's what I've implemented in the ...
0
votes
1
answer
22
views
VSTO Outook: Change the sender text from the inspector window
Is it possible to modify the sender text displayed in the 'From' field within the Outlook inspector window? When you double-click an email in the message list of the explorer, a new window (inspector ...
0
votes
0
answers
35
views
How to sign a non-VSTO Excel COM add-in written in C#? Should I implement a shim loader or migrate to VSTO?
I developed an Excel add-in using the NetOffice libraries in C#. The add-in is currently loaded by Excel using the default loader (mscoree.dll) and because of this Excel always recognizes it as not ...
0
votes
1
answer
35
views
VSTO Outlook: HOWTO determine if the MailItem comes from a file saved previously in local and then open in Outlook
I have an Outlook VSTO add-in and I need to determine if the Outlook.MailItem being processed corresponds to a saved file on the local disk that has been opened in Outlook, regardless of the type of ...
2
votes
1
answer
52
views
Is there a event that is fired after the word file is loaded?
I am currently developing a Vsto Word Addin in C#.
I am looking for an event that is fired every time a new document is created from a template and the document is fully loaded and displayed to the ...
0
votes
1
answer
27
views
Synchronize Ribbon (XML) Togglebutton with CustomTaskPane
I know I might be a bit late to the party, but unfortunately I still have to write a COM Add-in for Outlook. Because I need a contextual ribbon I have to use XML and not the designer.
All that is ...
1
vote
0
answers
66
views
Word Add in not showing up in Word
I made an add-in by myself using visual C# and the run-time VSTO plugin. I can install and run it on my computer which has Office 2021 Professional Plus. The problem comes on a different computer, the ...