office-app

Two open taskpanes side by side

蓝咒 提交于 2021-02-08 09:17:58
问题 I am making an Office add-in which has two ribbon buttons. Each button is linked to a different TaskpaneId, and clicking on each button opens a different taskpane: <bt:Urls> <bt:Url id="Contoso.Taskpane1.Url" DefaultValue="https://localhost:3000/addin/page1" /> <bt:Url id="Contoso.Taskpane2.Url" DefaultValue="https://localhost:3000/addin/page2" /> </bt:Urls> It seems that I have seen some Office Add-ins where two task panes can be shown side by side simultaneously (I forgot which exactly the

In Office Apps - Cannot redefine non-configurable property 'context'"

谁都会走 提交于 2020-01-05 04:23:15
问题 This is similar to In Office Apps for Excel 2013 - Cannot redefine non-configurable property 'context'". However it only happens on IE 11 and Edge. My use case is followin: I open outlook or any office application add-in. I run a pop-up for OAuth, on popup close i redirect the iframe to another page. First time i open the addin and finish OAuth flow everything is working correctly. However when I close the add-in and open it again (this time redirect is done automatically because user is

Nodejs - Office App License token verification service does not validate the token

☆樱花仙子☆ 提交于 2019-12-25 12:13:17
问题 I am developing office Apps using NodeJS. As part of that , I have to implement license check that would validate the token sent along with app url from office store. I referred the link http://msdn.microsoft.com/en-us/library/office/jj163908(v=office.15).aspx#bk_implement Here follows my code : var licence_code = req.param('et'); // this is equivalent to decodeURIComponent('token present in the url'); // Applies base64 decoding of the token to get a decoded token var decode_base64 = new

Office.initialize raises $rootScope:infdig

只愿长相守 提交于 2019-12-24 20:48:37
问题 Previously my add-in worked well in different browsers. Recently, in some browsers it does not load well (error messages in the console + just shows a blank page in UI); in some browsers it loads, but with error messages in the console. It is also odd that it works well in localhost , but not in production. Here is the minimum code: console.log("OfficeHelpers.Utilities.host: " + OfficeHelpers.Utilities.host); console.log("OfficeHelpers.Utilities.platform: " + OfficeHelpers.Utilities.platform)

How to published an Office Add-In to SharePoint for use with Excel Web App

[亡魂溺海] 提交于 2019-12-11 12:52:12
问题 I am unable locate any information on the Internet that simply makes the statement, "Office Add-ins (aka Apps for Office) only work in Desktop apps and Office Online. They do not work in SharePoint office web-parts.", if that truly is a correct statement. I have a Excel Add-in and can published it using the following instructions: https://msdn.microsoft.com/en-us/library/office/fp123515.aspx . My add-in is a task-pane add-in (https://msdn.microsoft.com/en-us/library/office/fp123523.aspx) With

Cannot switch between popup window and Excel for Mac

喜夏-厌秋 提交于 2019-12-10 21:25:49
问题 I have made an Excel add-in, which pops up a window either by window.open or Dialog API. I just tested it in Excel for Mac: when the window is opened, it seems that we can NOT put the focus back to Excel or the add-in taskpane; we have to close the window before choosing Excel or the add-in taskpane. Does anyone know if there is a way to enable switching focus between popup window and Excel? 回答1: The dialog window is a modal in nature that forces the user to interact with it before they can

How to show an Office/Word 2013 Task Pane 'Office App' after a click on a button in Ribbon?

♀尐吖头ヾ 提交于 2019-12-10 11:08:21
问题 I've created a Task Pane App with the new Office App model. It uses JQuery and a REST Service to search and display data from SharePoint in the (Word 2013) Task Pane. This works ok, however the App Task Pane should be activated after clicking on a custom button in the ribbon. To create the button, I've created a Word 2013 Addin project with following Custom UI XML: <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <ribbon> <tabs> <tab idMso="TabHome"

Load document from local filesystem to Office online

余生颓废 提交于 2019-12-08 20:14:49
I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems there are options available like insertFileFromBase64 and insertOoxml but unclear if those are only in

Auto-open does not work for people who have not signed in in browser

僤鯓⒐⒋嵵緔 提交于 2019-12-08 05:09:43
问题 I want to share a document online by a URL with some colleagues. When they click the URL and view the document online, I want a task-pane add-in to be automatically opened. I used Office-OOXML-EmbedAddin to create such a file with Script Lab auto-opened, then I put the file (view-only) on my OneDrive: https://1drv.ms/x/s!AmAcI5jpNEmng1NhS0xbIMcUnUNZ However, our tests show that, for people who have not signed in with Microsoft Account in their browser, the auto-open does NOT work, though they

Load document from local filesystem to Office online

ぃ、小莉子 提交于 2019-12-08 03:34:49
问题 I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems