2,580 questions
2
votes
1
answer
51
views
Excel Office.js displayDialogAsync fails with "Internal Error" on Desktop version 2507
I am developing an Excel add-in that needs to authenticate the user using OAuth. To do this I am calling Office.context.ui.displayDialogAsync to open the authorization page in a dialog.
The code works ...
1
vote
0
answers
163
views
How to prevent main window from stealing focus from an addin form on keypress?
I am writing an addin to a third-party application (Eplan, if it matters). The addin opens a form with a DatagridView that I want to use Ctrl-C / Ctrl-V in. The problem is that Eplan has many keyboard ...
0
votes
0
answers
24
views
Outlook add-in cannot figure out how to debug inside a Office.OnReady()
I've been working on an outlook add-in thats supposed to do some things with attachments when a mail is send, I've tried to use events for this but came to the conclusion that it may just be ...
0
votes
0
answers
34
views
PowerPoint JS API: Can't Create Lines with Negative Slope Using addLine
We are encountering a technical issue with the PowerPoint JavaScript API when attempting to create lines with negative slope (lines that go upward from left to right). Despite various approaches, we ...
0
votes
1
answer
38
views
Visio Addin - Mouseup event not firing after shape drag
I've got the following code (in testing mode) in a Visio addin to be used to track shapes being dragged. All events appear to be firing as expected - Except.... When I drag a shape, the mouse down ...
0
votes
1
answer
63
views
Check if cell has formula in Excel web add-in in C#
I am currently creating an Excel web add-in in C# with Visual Studio.
Is there a way to find if a cell has a formula ?
Find my code below. The aim of the code is to check the cells in A1 to E1 and ...
1
vote
0
answers
66
views
Office.js | Comments not showing immediately after adding through Office.js
I am building a word add-in, one of the main functions is that it can insert comments in specific parts of the document. The whole thing works well when used in locally installed Word, but as soon as ...
1
vote
1
answer
160
views
Converting 32-bit xll Excel add-in to 64 bit: LNK1561 error
I've inherited an ancient C project that builds an Excel add-in .xll file which works with 32-bit Office, but not 64-bit Office. The project is in a Visual Studio 2022 solution. There are two ...
2
votes
1
answer
180
views
Access RStudio R console when running a shiny app
I’ve written an RStudio addin that launches a Shiny gadget in the RStudio Viewer. However, once the gadget is running, my R console is locked until I close the gadget. Here’s a minimal example of my ...
0
votes
0
answers
83
views
Package Loading Failure Provided add-in package was not understood. Please, make sure that the file being submitted is a valid Office add-in package
I am trying to import Teams package to Teams Developer Portal. Getting this error while uploading and validating app package. Manifest version 1.16.
Saw a lot of different sources and found nothing.
{
...
0
votes
0
answers
48
views
Error creating new instance of ef core context in new Inventor 2025 addin
I am creating an addin for Inventor 2025 using its own vb.net addin template.
It needs to interact with a sql server database (load drawing info and saving parts lists).
When I create the new instance ...
0
votes
1
answer
83
views
Word update (2410) crashing Word when setting HeaderFooter.LinkToPrevious to False
The latest Word update (version 2410 build 16.0.18129.201000 64-bit) is crashing Word for us. We believe its occurring when we set the HeaderFooter.LinkToPrevious property to False for an even page ...
0
votes
2
answers
198
views
Developing a word library add-in for office 2024
i'am trying to develop addin for word 2024.
I have created a dummy dll like this:
#include <Windows.h>
extern "C" int WINAPI wlAutoOpen(void);
extern "C" int WINAPI ...
0
votes
1
answer
141
views
fetch() partially working in office add-in
I am building an office add-in, specifically to be used in Word. I also have an API that I built using Django that accepts and takes in data as 'formData'. Now, in my office add-in I have written a ...
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
0
answers
183
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=...
0
votes
1
answer
178
views
Can't set SolidWorks Custom addin to Active
I have created a new version of a custom addin for SolidWorks. The addin adds a tab to the CommandManager which contains a bunch of buttons to macros. I have previously updated it without issue. ...
0
votes
0
answers
48
views
The Word add-in does not work with hard spaces
I'm a noob in C# and I wanted to improve my work with documents. I made an Add-in with a button that helps me format a given document. I use checkboxes to mark what I want to do with the document and ...
0
votes
0
answers
45
views
Aggregated Add-in organization
I've got a collection of add-ins (separate xslm), which I would like to organize in one central xlam (add-in). So the the issue is that I don't have any other organizational mechanism apart from the ...
0
votes
1
answer
45
views
ArcGIS Pro 2.9 Addin popup windows form blocking map display
I have this arcgis pro 2.9 Addin that has its own user interface, winform, that will popup when activate, it will carry out work. But when I pop up another windows form from this Addin UI to interact ...
0
votes
0
answers
131
views
How to Properly Integrate OpenSolver Add-In with VBA in Excel on MacOS?
I'm trying to integrate the OpenSolver add-in with my VBA code in Excel on MacOS. My goal is to use OpenSolver to solve a traveling salesperson problem (TSP). However, I'm running into several issues ...
0
votes
1
answer
35
views
Word Ribbon Action Function Is Not Triggered
I am working in an add-in project using taskpane. I created a custom tab and identified my buttons and function actions in the manifest file as described:
<bt:Urls>
<bt:Url id=&...
0
votes
1
answer
469
views
Accept/Reject Tracked Changes in word document using office js api
I am using office js to track the user changes in the document:
async function setChangeTrackingMode() {
// Sets the change tracking mode.
await Word.run(async (context) => {
context....
0
votes
0
answers
27
views
EA Addin - API EA_OnNotifyContextItemModified [duplicate]
I created an addin in C#.
API EA_OnNotifyContextItemModified is triggered when in EA Application, the user selects an element, opens the Context Element window (by double click on element) and only ...
0
votes
1
answer
197
views
Custom functions in Excel right-click menu
My team created Excel Add-in toolbars to open our Excel macro tools. The custom functions in these Add-in are no longer displaying (or accessible) on the Excel 'right-click' menu.
We use Windows 10 / ...
0
votes
1
answer
420
views
Set Microsoft Office Addin for excel taskpane width by default
We are developing a web add-in (Microsoft Office Add-In) for excel, and are using taskpanes to show the UI, by default the taskpane width is about 20% approx of the screen size. Is there a way we can ...
0
votes
1
answer
241
views
UDFs in Excel add-ins only work when I open the add-in first. How do I get Excel to link the add-in to the spread sheet naturally?
I'm using Excel in Microsoft 365 and I have several UDFs written in MS VBA and saved in a *.xla file located in C:\Users\username\AppData\Roaming\Microsoft\AddIns. Additionally, this file has been ...
1
vote
1
answer
79
views
How to open excel native taskbar/contextual menu from excel add-in taskpane?
I am developing an Excel add-in using Office JS API. Now, I want to open the native Excel taskbar/contextual menu from the add-in task pane.
Could you please guide me on how to implement this ...
2
votes
1
answer
60
views
How to get or copy Office settings from another workbook?
I am developing an Excel add-in and storing workbook & add-in details in the Office settings to get the workbook settings whenever I share a workbook with someone. I have followed this steps to ...
0
votes
0
answers
83
views
Azure Bot Message Extension auth is not responding
I have a message extension bot setup where you have to authenticate before you can use it. This has always worked previously but since a few days ago, when I click the sign in button sent from the ...
0
votes
1
answer
44
views
Custom Add-In Won't Load
I followed this tutorial but I don't know if this is outdated or some weird permissions going on. The load button is greyed out when I try to add my custom add-in.
I created a custom macro for ...
2
votes
1
answer
162
views
how to convert word Ooxml to html using javascript?
getHtml() method doesn't return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, ...
0
votes
1
answer
333
views
Create new document with base64 using office javascript API in office 365
Using this I am creating new document with base64String in word this is working in word desktop version but this is not working on Office 365.
async function CreateNewDoc(event) {
try {
...
2
votes
1
answer
112
views
how to insert value to row cells adding new row in table using office js in word?
using This I am adding new row in table how can I give value to its cells
await Word.run(async (context) => {
const selection = context.document.getSelection();
selection.load('...
-1
votes
1
answer
60
views
how can I get `parentSectionOrNullObject` Range in word? using Office javascript Api?
I am using this but this is giveing error TypeError: Cannot read properties of undefined (reading 'isNullObject') when I am using breakpoint then this is give selection.parentSectionOrNullObject ...
0
votes
1
answer
176
views
how can I get Word.Section Range using office javascript api?
I want to get current Word Section range. where my cursor is clicked get there section rage.
this is like of Microsoft documentation
Word.Section class
0
votes
1
answer
210
views
I want to get All hidden Bookmarks from word document using office JS
I want to Get All hidden bookmarks names from my document in word using word JS add-in
using this is I am trying but not done.
getBookmarks(includeHidden, includeAdjacent)
await Word.run(async (...
0
votes
1
answer
209
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 ...
0
votes
0
answers
57
views
Cant resize UserControl
I am trying to write a simple extension for VBIDE. My problem is that the UserControl (WinForm) does not stretch to the width of the dockable window and does not resize when the window is resized.
...
0
votes
1
answer
178
views
How to get the active document info/text in word, through office JS API
I want to get the current active document info/text, which user is able to see on screen.
Can we achive it throgh Word JS API? Or is there any other way to get the current/active page in word for JS ...
1
vote
1
answer
172
views
Cant create tool window (com add-in extension for vbide, vba)
I am trying to write a simple extension for VBIDE and am stuck on creating a dockable window. The error I am getting is HRESULT 0x800401F3 on line:
_window = windows.CreateToolWindow(
...
1
vote
0
answers
52
views
EA Addin - GUI update from a task or a thread
I created an addin in C# and WPF (MVVM).
I need to update the GUI after I ran several queries that are taking 8 seconds via repository.SQLQuery(...).
To not block the main thread of the Enterprise ...
0
votes
1
answer
77
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. ...
0
votes
1
answer
431
views
How to activate the SolidWorks add-in "FeatureWorks" with C#?
I am building a program in C# that uses the SolidWorks API.
When I create a new instance of SolidWorks with the command:
sldWrks = (SldWorks)Activator.CreateInstance(Type.GetTypeFromProgID("...
-1
votes
1
answer
265
views
how to refresh my office JS add-in side panel using javascript code?
how to refresh my office JS add-in side panel using javascript code ? I want when when I click on on this button in my add-in side panel refresh my add-in side panel
<button onclick="...
0
votes
2
answers
218
views
how to delete table design from word document page using javascript ? Word js Add-in
I am inserting a table design in word document last page from table html. how can I delete it
this is my code
async function NewMap() {
try {
await Word.run(async (context) => ...
1
vote
1
answer
2k
views
Could not load file or assembly 'System.Text.Json, Version=7.0.0.0' in ArcGIS Pro 3.1 SDK for .NET
I have upgraded an ArcGIS Pro 3.1 Add-In from version 2.8. The Add-In uses Microsoft.Extensions.Configuration.Json to manage a configuration file.
However, when the code tries to read the config file:
...
0
votes
2
answers
80
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'...
0
votes
0
answers
150
views
The OWA Add-Ins Ribbon is missing for some users
We are having an issue where a subset of users cannot see the Add-Ins ribbon when using outlook.office.com . Most users can see the ribbon. They have the add-ins group on the message surface but it ...
2
votes
1
answer
1k
views
How to load the Revit addin from some specific folder?
I'm a new one in the development of the Revit addins. And I have one problem. Currently, Revit 2023 doesn't load my custom C# addin.
So, I have only one DLL file, that called MyTestAddin.dll. It's ...