In this post, I’ll highlight some of the new features for developers in Word 2013 Preview.
As Frank Rice mentioned in his recent post, What’s new in Office 2013 Preview for developers, the most exciting new feature in Office 2013 Preview is apps for Office, which, for example, enables you to use live web content directly in a Word document.
When you create apps for Office 2013 Preview, you can make them publically available in the Office Store. There, they can be purchased or made available for free, depending on your preference. Organizations can create an internal store, known as the App Catalog. The App Catalog provides a central location for all solutions, whether developed internally or externally. This enables the IT department to manage and monitor solutions centrally.
Word 2013 Preview adds some great new content-control-related features, such as repeating content controls, color coding, and control over the appearance of the content control in the document. In case you’re not familiar with content controls, they are regions in a document that serve as containers for specific types of content, as shown in the figure below. Content controls can contain content such as dates, lists, or paragraphs of formatted text. Incidentally, the apps for Office that you create can interact with content controls, including repeating content controls, by means of custom XML parts.
The following VBA code sample shows one way that you can use repeating content controls programmatically. It sets up a table row that has three XML mappings and uses a repeating content control to repeat that row for each <book> element in a custom XML part in the document.
Other developer features in Word 2013 Preview include:
- Markup – Customize how user markup, including comments, is displayed.
- Page color – Set the page color in Reading mode programmatically.
- XML mappings – Create XML mappings to content controls natively by means of a task pane available from the ribbon UI, as opposed to the VBA or file format manipulation required in Microsoft Word 2010 and Microsoft Office Word 2007. The task pane enables you to visually set XML mappings to content controls in the document.
- Broadcast – Programmatically control the new broadcast feature that enables real time editing of documents in an online meeting by both attendees and presenters.