Get office version in addin with office.js - ms-office

I need to get the office version that is running my word add-in. I need to get some statistics about users.
How could'I get this in Office.js ?

This isn't currently supported by the APIs. Could you please elaborate on your scenario of why you need it?

Related

How to know my add-in is open in Excel task-pane Office 365?

I am creating an Office 365 plugin for Excel using Angular. I use Office-JS library to interact with Excel. My plugin appears in the Excel task-pane.
I want to know that my add-in is open/close in task-pane via code, I want to know as I need to solve some issue related to this in my add-in.
Unfortunately our API doesn't provide the event for Taskpane open/close. which is a known feature gap.
So would you please provide us feedback via https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback?category_id=163563 and upvote for this feature. Thanks for your support.

CoercionType doesn't support Image for Excel web add-in

For office js API, based on this link, Office.CoercionType.Image should be supported in Excel. But I find Office.CoercionType.Image is undefined in Excel Online. Only Text, Matrix, and Table have values.
BTW, it seems that OneNote also supports Office.CoercionType.Image which is not listed in the document.
Thanks for your post, This is a known gap for Office.CoercionType.Image that is not supported for Excel Online at this moment, we have documented for this at https://learn.microsoft.com/en-us/office/dev/add-ins/reference/requirement-sets/image-coercion-requirement-sets
What's your scenario? can you use shape.AddImage?
Another suggestion: would you please provide us feedback via https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback?category_id=163563 and upvote for this feature. thanks for your support.

Simulate older API versions for testing

I am developing an Excel add-in. My local version of Excel is running the latest so I have access to all of the most recent API calls. However, I want to be able to test the experience (and work around potential API holes) for a user that has a different version.
As an example, I am making use of the getRangeOrNullObject call which became available in v1.4 of the API. Is there any reasonable way to simulate using an older version? I want to be able to handle a bad range without making use of getRangeOrNullObject in a "real" environment.
I have tried pointing to a specific version, eg:
https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js
However that seems to load the most recent. Other versions (1.2, 1.3) are a 404.
From the Office Dev Center:
Specify Office hosts and API requirements
Your Office Add-in might depend on a specific Office host, a requirement set, an API member, or a version of the API in order to work as expected. For example, your add-in might:
Run in a single Office application (Word or Excel), or several applications.
Make use of JavaScript APIs that are only available in some versions of Office. For example, you might use the Excel JavaScript APIs in an add-in that runs in Excel 2016.
Run only in versions of Office that support API members that your add-in uses.
This article helps you understand which options you should choose to ensure that your add-in works as expected and reaches the broadest audience possible.
For a high-level view of where Office Add-ins are currently supported, see the Office Add-in host and platform availability page.
See full article at the source.
Related links:
Microsoft Docs : Usability testing for Office Add-ins
GitHib : NamedItem Object (JavaScript API for Excel)
GitHub : Excel JavaScript API requirement sets
Microsoft Docs : Specify Office hosts and API requirements

VSTO & Office.context.document.settings

Is it possible to access Office.context.document.settings from VSTO?
We have an VSTO AddIn that currently writes to the CustomXML in Excel workbooks. We would like to make it Napa/O365 compatible. Since Napa can't read CustomXML parts in Excel we want to write to Office.context.document.settings, hence the question above.
Or is there a better way to share storage between VSTO and Napa in a Excel workbook?
Ron.
The JavaScript for Office API can't be used in a VSTO solution, as it requires a web context. Your desktop add-in solution would have to be ported to use the web-based APIs and tools.

Read Microsoft Excel Sheets from a Windows Store Application

I want to develop a Windows Store app that reads data from a Microsoft Excel Sheet.
I'm looking for a solution for this, something like hosting the Excel sheet on a server and using some API or an SDK to read its content.
Also can SharePoint Online, Azure or Office 365 provide such functionality ? I didn't work with these tools before so I don't know what they can really offer for my scenario.
What can be the best solution to achieve this ?
You can refer the following link for SDK to read Microsoft Excel files,
http://www.syncfusion.com/products/file-formats/xlsio
Regards,
Riyaj Ahamed I

Resources