office-addins

Displaying iframes in Office applications embedded browser

和自甴很熟 提交于 2021-01-29 20:00:38
问题 We included Google reCaptcha v3 in a custom login page that protects SharePoint. The solution works in all browsers except the embedded browser of Office applications. We receive the following error from Word if we try to login via the embedded browser after opening a document from SharePoint: Your organization's policies are preventing us from completing this action for you. For more info, please contact your help desk. reCaptcha uses an iframe to work. This iframe looks like this: <iframe

Office addin getAttachementContentAsync failed to load CORS issues

我怕爱的太早我们不能终老 提交于 2021-01-29 19:39:06
问题 I am working on an outlook plugin and I want to send the attachements from an email read item to my backend. I am trying to use the method getAttachementContentAsync for each attached file, but it fails. Here is the error message: Uncaught (in promise) TypeError: Failed to fetch Access to fetch at '' (redirected from '') from origin 'https://outlook.live.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response

document.contentControls not returning all ContentControls in the document

不羁岁月 提交于 2021-01-29 09:21:40
问题 I have a document with three ContentControl objects that looks like this: Here is the .docx file in its entirety - but essentially the markup of the document body looks like this: <w:body> <w:p w:rsidR="0075044D" w:rsidRDefault="0075044D"> <w:r> <w:t xml:space="preserve">Video provides a powerful way to help you </w:t> </w:r> <w:sdt> <w:sdtPr> <w:alias w:val="cc1"/> <w:tag w:val="prove"/> <w:id w:val="806369342"/> <w:placeholder> <w:docPart w:val="1F3FDE3D075A4E8AADE251C4E318E379"/> </w

Word add-in Error Code 13004

倾然丶 夕夏残阳落幕 提交于 2021-01-29 06:19:59
问题 Just want to ask for help in this error, seems like there is little documentation about this error. I created a Word add-in that utilizes MS Graph, when I deployed it through Azure App Service and run the add-in in Word. It throws this error: Error code: 13004 Name: Invalid application resource Url provided. Message: Invalid resource Url specified in the manifest. Do note that I am using Azure's default app service URL for my add-in, which is something like https://yourappname.azurewebsite

In Office Add-in C#, There is an option to open Form on top of the office Application only?

一个人想着一个人 提交于 2021-01-29 05:00:28
问题 TopMost it's not good because it's on top of all the applications in the computer. Except ShowDialog() way, because it's lock the Application. 回答1: You need to use a modaless dialog in order not to block the Main Office application. You also need to set the Office Application as parent window of the modaless dialog. 1) Use the WindowWrapper class from this answer. 2) Lets assume you have the access to Application object of your Office app. App.WindowHandle32 is the handle to the main Window.

What is the correct way to figure out the version of Office installed?

依然范特西╮ 提交于 2021-01-28 08:36:31
问题 For Office 2010 & later, what is the correct, supported, always right, best, best, best way to determine: What version of Office (Word) is installed? What its bitness is? The registry entries HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe both have the path to the winword.exe file. Do I use that and read the EXE to get the version & bitness? Also, what if those two registry

Data get render on Desktop Excel using office.js, but on Chrome Office 365 its give an error “There was an error processing the request.”

不想你离开。 提交于 2021-01-28 03:31:19
问题 We are using Office js library to render data on excel. There are more than 2000 rows that works fine on Desktop Excel . But when same API is used on Chrome office 365 it gives error message "There was an error processing the request." Please see attached screenshot. As data get larger Chrome Office excel is not able to render data. Please help us as this is blocker in our application and our production is getting effected. 回答1: There are 2 limitations when interacting with Excel workbook

Data get render on Desktop Excel using office.js, but on Chrome Office 365 its give an error “There was an error processing the request.”

做~自己de王妃 提交于 2021-01-28 02:39:54
问题 We are using Office js library to render data on excel. There are more than 2000 rows that works fine on Desktop Excel . But when same API is used on Chrome office 365 it gives error message "There was an error processing the request." Please see attached screenshot. As data get larger Chrome Office excel is not able to render data. Please help us as this is blocker in our application and our production is getting effected. 回答1: There are 2 limitations when interacting with Excel workbook

Office.Settings not retrievable in Excel Online when created and set in Excel Desktop

纵然是瞬间 提交于 2021-01-28 01:52:32
问题 According to the API docs, the Office.Settings objects are saved per add-in and per document. That is, they are available only to the add-in that created them, and only from the document in which they are saved. I'm a bit confused regarding the Office.Settings interface. I've created a gist in the ScriptLab Add-in where I set 2 setting objects (queries and queryIDs) and then retrieve them (log them to console). Gist: https://gist.github.com/VivianVenter/e5489628384f96f2d3bf9a50aace8728 If I

Outlook Add-in file download

时光怂恿深爱的人放手 提交于 2021-01-27 06:56:01
问题 What I'm trying to do Download a file from an Office Outlook add-in inside Outlook application in MacOS X "El Capitan" ( not the web portal ) How I tried to do it I have tried with: Blob data URL btoa - atob A tag with download variable internal window.open ( in a allowed domain ) Applying Office Dev tutorial Office-Add-in-JavaScript-FileDownload ( with a modification to make it work in outlook due to OfficeExtension class) But result is always the same: or it shows the file (i.e. images or