From the course: Microsoft Office Add-Ins for Developers

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

The Word API

The Word API

From the course: Microsoft Office Add-Ins for Developers

Start my 1-month free trial

The Word API

- [Instructor] Word must be the oldest of the Office applications. It was introduced in 1983, so it's somewhat older than Windows. The most important thing to know is that there are effectively two JavaScript libraries. The first is the Office API, which works across all the Office applications in a consistent way, but this comes at a price in terms of complexity. We have to work with OOXML and coercion types, which is nontrivial. But there's also a Word specific API that's easier to use because it's designed specifically for Word. The one drawback, and as soon as you say simpler, you know there's always going to be a drawback, is that Word API is newer and doesn't work with older Word 2013 applications. So the recommendation is to use the Word API unless you need to support Word 2013 for your users. Another reason to use the Office API is if you want common code across different Office applications. We'll use the more powerful Word API. The first thing you need to use is the Word.run…

Contents