FranchoZGZ
FranchoZGZ

Reputation: 61

Word JavaScript preview API

Is it possible to use the preview API in a offline environment? I means, something like to reference locally the library.

Thank you for your time.

Best regards

Upvotes: 2

Views: 1115

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49397

Yes, it is possible if you download the latest office.js version locally. To use preview APIs:

  • You must reference the beta library on the CDN (https://appsforoffice.microsoft.com/lib/beta/hosted/office.js). The type definition file for TypeScript compilation and IntelliSense is found at the CDN and DefinitelyTyped. You can install these types with npm install --save-dev @types/office-js-preview.
  • You may need to join the Office Insider program for access to more recent Office builds.

Read more about that in that in the Word JavaScript preview APIs article.

Upvotes: 2

Related Questions