Office Open XML is also the language behind PowerPoint and Excel (and, as of Office 2013, Visio) documents. Determining the Office Open XML markup you need to get it done is easier than you might think.
dotx) are written, you can insert virtually any type of content that a user can add to a Word document, with virtually any type of formatting the user can apply. Because Office Open XML is the language in which Word documents (such as. Depending on your scenario, there can be drawbacks to HTML coercion, such as limitations in the formatting and positioning options available to your content. If APIs aren't yet available, you can use HTML for inserting some types of rich content, such as pictures. You can try this and other snippets in the Script Lab add-in on Word! To learn more about Script Lab, see Explore Office JavaScript API using Script Lab. For an example, see the Insert formatted text code snippet. Start with the APIs available through the WordApi requirement sets to see if they provide what you need. So what are your options when you need to add rich content to a document, such as images, formatted tables, charts, or even just formatted text? These are called coercion types, and they include plain text, tables, HTML, and Office Open XML. If you're building Office Add-ins to run in Word, you might already know that the Office JavaScript API (Office.js) offers several formats for reading and writing document content. Provided by: Stephanie Krieger, Microsoft Corporation | Juan Balmori Labra, Microsoft Corporation