office-addins

MicrosoftAjax.js is not loaded successfully inside Office application

蓝咒 提交于 2019-12-24 00:53:55
问题 I was using the CDN release of office-js , but had to change to a local version. After this change, it seems Office.initialize is not being run, which means the add-in doesn't work correctly. On the console, I see the following error: SCRIPT5022: MicrosoftAjax.js is not loaded successfully. office.js (18,26767) The only references to MicrosoftAjax.js that I can find are ASP.NET related, but my project is Typescript/React. Here's how office.js is being loaded in the html: <!doctype html> <html

VB6/VBA Do not Allow COM Add-In to load

心不动则不痛 提交于 2019-12-23 17:59:22
问题 I have a VB6/VBA application that hooks into Excel and loads a workbook. It has been working great for many years. We have now upgraded to Excel 2010 and have ran into some issues. After troubleshooting it seems that if i turn off the PowerPivot COM Add-In the process is able to run as it did before with no issues. While I look for the exact cause of this i wanted to see if i can turn off that Add-In just for my app. I load up Excel like this: Set xlApp = CreateObject("Excel.Application")

Task Pane Addin for outlook Web app

狂风中的少年 提交于 2019-12-23 15:54:19
问题 By command Add-in, task pane is going to appear to the right side of outlook desktop app. Similarly, is it possible to have task pane to appear to the right side in the Outlook Web app? Thanks in advance. 回答1: Following up with this. Addin Commands are now available on Outlook on the Web (OWA) and Outlook for Mac. If you have implemented an Addin Command for Outlook, it should work without modification for the newly implemented platforms. 回答2: Unfortunately, at the time of the writing it is

Is it possible to copy excel formula using an office add-in?

☆樱花仙子☆ 提交于 2019-12-23 12:49:19
问题 I have managed to create a fully functioning task pane add-in for Excel 2013 using Visual Studio Pro 2013 and I have a bunch of test functions that all work nicely, like adding in data, creating bindings, creating tables etc. Now I want to do something that is very simple in Excel, which is add in a new column, then copy the column to the left of it into the new column. In excel this would copy all of the formula and any cell formulas references that are relational would transpose nicely to

How can you add a Custom Panel in a Visio 2013 add-in?

六眼飞鱼酱① 提交于 2019-12-23 10:07:59
问题 Recently I wrote an outlook add-in which has a ribbon.xml file for an extra ribbon, context menu's, etc. I also added an extra panel docked on the right of my window. Now I've begun some research as on how to create add-ins for Visio. The ribbon.xml is practically the same, so that's not a problem at all. However, I can't seem to find any way to add a custom panel when a Visio document is opened. So far I have this in Visio to know if a document is opened/created/changed: private void

Office.js dialog API and multiple displays with high DPI

别说谁变了你拦得住时间么 提交于 2019-12-23 01:47:13
问题 I noticed a problematic behavior of the Office.js dialogAPI. Indeed, I use two monitors one being an high DPI (3840*2160) with 250% zoom. The second one is 1920*1080 (zoom 100%). If Office is set in monitor 1 and if I open the dialogAPI (let us say with 80% default values), then the size of the dialog is computed using the extension of the two monitors. Therefore, the dialog windows becomes gigantic, span the two displays and cannot be used without resizing. 回答1: Thank you Benoit. Yes this is

Blank Auth Dialog Window in Outlook React Addin

北战南征 提交于 2019-12-23 00:51:36
问题 I have tried using Dialog API and office-js-helpers for authenticating users in my Outlook Addin React app and both of them create pop-ups for auth but they are both blank screens. Both methods return the following error The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the

Office Add-in development: Insert table in Word 2016

五迷三道 提交于 2019-12-22 11:27:46
问题 I am trying to insert a table using Office.js inside the body of a document but to no avail. I have used the following code: function insertSampleTable() { showNotification("Insert Table", "Inserting table...") Word.run(function (context) { // Create a proxy object for the document body. var body = context.document.body; body.insertTable(2, 2, Word.InsertLocation.end, ["a"]); // Synchronize the document state by executing the queued commands, and return a promise to indicate task completion.

Catch WindowTurnedToPage Event in a Visio AddIn project

让人想犯罪 __ 提交于 2019-12-20 07:43:14
问题 I'm trying to execute some code when the user swap between the pages of a visio window. So i tried to catch the WindowTurnedToPage event, but it simply don't work. Other events from his family can be catched, and they respond when they should. But WindowTurnedToPage and BeforeWindowPageTurn don't respond. private void InternalStartup() { this.Startup += new System.EventHandler(ThisAddIn_Startup); this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); Application.Window

(JavaScript API 1.3 for Office) Custom Properties add method

半腔热情 提交于 2019-12-20 07:13:48
问题 Here's a link tho what made me start digging into custom Props again. I can see that my customProperties are 0 so i assume getCount is somewhat working, even though I'm accessing it through items.length and not customProps.getCount() Is this still intended or am i just not doing it right and it's possible doing as in the MS Office Documentation Now the main part of my question, the add method. Whatever i try it crashes and i get an exception. Can i assume add method is still not properly