2017-09-02 1 views
0

J'utilise ce code:mot Addin - ouvrir un fichier comme un nouveau document dans Office 365 en ligne

Word.run(function (context) { 
    context.application.createDocument().open(); 
    return context.sync(); 
}) 

Pour ouvrir Word dans Office 365 en ligne, il ne fonctionne pas. Je reçois cette erreur:

Sorry, this function isn’t available. Perform a run-time check on the Office add-in to find out whether the feature is supported by the host.

J'utilise la version https://appsforoffice.microsoft.com/lib/beta/hosted/office.js .

Y at-il une feuille de route pour la disponibilité de ceci dans Word en ligne?

Répondre

0

Cette fonction fait partie de la spécification WordApi 1.4 proposée et n'est pas encore incluse dans le produit. Je n'ai pas d'ETA pour quand il pourrait être disponible.

De l'documentation:

Note: The features listed are still in the design and review phase and are not yet available as part of the product. The final design is subject to change. When the feature is made available, the final specification will be published as part of the master repository.