Default browser in excel addin - excel

I am working on Excel add-in but I am new in office.js.
I would like to know if there is a way to set a browser different from IE 11 as default browser to open the add-in.
I saw the same question on URL below, but I didn´t find if the API mentioned on the answer was developed.
How to set the default browser in word addin

I'm afraid that there is currently no API to determine which browser is used when the add-in is running in desktop Office on Windows. (If it is running in Office Online, then of course it opens in whatever browser you are using.)

Related

How to change link opening on Outlook and Teams on Macintosh?

I am using Microsoft Excel, Teams and Outlook on Mac. Always if there is a Link in a E-Mail, a Chat in Teams or a Excel Document Safari is opening.
Where can I change this simple Setting on Mac? I always want to open other Browser like Firefox.
I read all Microsoft description, but they are not for Mac use.

Force Outlook Add-in popup to open with embedded browser

I'm seeing an issue with my Outlook Add-in (running in Outlook 2016) where when I open a popup window using window.open, it sometimes opens in the user's default browser (e.g. Chrome) instead of the browser running the add-in (e.g. the IE11 web view embedded in Outlook 2016). This is a problem because it prevents the popup window from communicating with the add-in, which is necessary for clickjacking protection.
Is there a way to force the popup window to be opened in the same browser that is running the add-in, without using the Dialog API? I would like to support requirement set 1.3.
You should check to see if the displayDialogAsync API exists. It was added in requirement set 1.4.
If it exists, we recommend using it. Please note that the dialog can only call the Office.context.ui.messageParent API. This API allows the dialog to communicate one-way with the add-in. The add-in can use those messages to leverage the Office.js APIs.
If the displayDialogAsync API doesn’t exist you can leverage window.open. However, in this case the default browser will not be launched.
As 2022 docs were updated.
The API documentation was moved from dev.office.com (these links don't work anymore) to learn.microsoft.com. And here you will find an example on how to use this api.

window.opener does not work in Excel for Windows

I have built an Excel add-in, it opens a popup by window.open, then the add-in communicates with the popup site. I just realised that it does NOT work in Excel for Windows, the reason is that the popup can NOT get the host by $window.opener.
To illustrate this and avoid cross-domain, I have made a xml, which refers to the add-in and the test page. It works well in Excel Online in Chrome and in IE. However, while running it in Excel for Windows, $window.opener returns undefined.
Could anyone tell me what happened, and what's the workaround?
(for people who recommend Dialog API, please see this thread. So now neither Dialog nor window.open works in Excel for Windows).
UI.messageParent also won't work? It's from the official docs.
Example:
Office.context.ui.messageParent("Message from Dialog box")
Docs:
Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent.
(I assume this isn't the Dialog API which you referring)

SharePoint export to excel is not working in google chrome

SharePoint Export to Excel is not working in Google Chrome, while it is working fine in Internet Explorer.
I am using Office 365 site and after clicking on the export button i am seeing below message:
WEB
1
https://site/_vti_bin/owssvr.dll?XMLDATA=1&List={88B6B725-0CF2-4836-8837-756E1458D5DE}&View={6BCBC19D-6BAC-4D72-BCB5-017007177ADC}&RowLimit=0&RootFolder=%2fsites%2fFinance%2fLists%2fGL%20Master
Selection={88B6B725-0CF2-4836-8837-756E1458D5DE}-{6BCBC19D-6BAC-4D72-BCB5-017007177ADC}
EditWebPage=
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
SharePointApplication=https://bramblesgroup.sharepoint.com/sites/Finance/_vti_bin
SharePointListView={6BCBC19D-6BAC-4D72-BCB5-017007177ADC}
SharePointListName={88B6B725-0CF2-4836-8837-756E1458D5DE}
In SharePoint, Export To Excel functionality is supported only in IE browser.
This functionality requires Active X control which Chrome and Firefox doesn't support.
You can find more details on this here
Buddy, you're going to have to use an alternative method because SharePoint's Export to Excel feature will give you the user experience you desire only within Internet Explorer 8, 9, and 10, per Microsoft's own documentation at https://learn.microsoft.com/en-us/SharePoint/install/browser-support-planning#supportmatrix. However, the answer given in this other StackOverflow question might be just what you need because it does work in Chrome:
Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browse
The answer basically involves the use of a custom JavaScript function to present similar functionality to what you're looking for.
Export to Excel will not work in Chrome for some lists as it requires a compatible application. Alternatively, you could view in QUICK VIEW – or “edit the list” and while in this view, copy and paste the data to Excel.
There is one reference article which will help you to understand the limitations of SharePoint in Google Chrome, Please Click Here to view that article.

IE8 asking for credentials when opening xls files office 2007

I'm using a 3rd party software which stores office documents and the front-end is a web-client.
Didn't have this issue when used with Office 2003.
With office 2007 when I try to open the document from IE it asks for Windows credentials, I can then cancel that and it would still open the document.
However if I click on 'Save' rather than 'Open' it saves the document without asking for any credentials.
I have applied the following Microsoft KB, but no result:
http://support.microsoft.com/Default.aspx?id=943280
Does IE behave different when you click on 'Open' or 'Save' other than one you choose the location and the other stores it in a temp (C:\Users\User\AppData\Local\Microsoft\Windows\Temporary Internet Files)
Also tested on other browsers, Chrome and Firefox and it works fine, but the 3rd party software only supports IE.
Any help is much appreciated.

Resources