Office Word Macro
Macros
- Activity Stream Macro
- Anchor Macro
- Attachments Macro
- Blog Posts Macro
- Change-History Macro
- Chart Macro
- Cheese Macro
- Children Display Macro
- Code Block Macro
- Column Macro
- Content by Label Macro
- Content by User Macro
- Content Report Table Macro
- Contributors Macro
- Contributors Summary Macro
- Create from Template Macro
- Create Space Button Macro
- Excerpt Include Macro
- Excerpt Macro
- Expand Macro
- Favourite Pages Macro
- Gadget Macro
- Gallery Macro
- Global Reports Macro
- HTML Include Macro
- HTML Macro
- IM Presence Macro
- Include Page Macro
- Info, Tip, Note, and Warning Macros
- JIRA Issues Macro
- JUnit Report Macro
- Labels List Macro
- Livesearch Macro
- Loremipsum Macro
- Multimedia Macro
- Navigation Map Macro
- Network Macro
- Noformat Macro
- Office Excel Macro
- Office PowerPoint Macro
- Office Word Macro
- Page Index Macro
- Page Properties Macro
- Page Properties Report Macro
- Page Tree Macro
- Page Tree Search Macro
- Panel Macro
- PDF Macro
- Popular Labels Macro
- Profile Picture Macro
- Recently Updated Dashboard Macro
- Recently Updated Macro
- Recently Used Labels Macro
- Related Labels Macro
- Roadmap Planner Macro
- RSS Feed Macro
- Search Results Macro
- Section Macro
- Space Attachments Macro
- Space Details Macro
- Space Jump Macro
- Spaces List Macro
- Status Macro
- Table of Contents Macro
- Table of Content Zone Macro
- User List Macro
- User Profile Macro
- View File Macro
- Widget Connector Macro
- Task Report Macro
- JIRA Chart Macro
On this page
Related content
- No related content found
The Office Word macro is going away in a future release
Read more about this change or find out about a better way to insert and preview Word files.
The Office Word macro displays the content of a Word document on a wiki page. First attach the document to a Confluence page, then use the macro to display the content. When viewing the page, people will see the content of the document, without needing to have Office installed.
For details, see the View File Macro.
Code examples
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: viewdoc
Macro body: None.
Parameter name | Required | Default | Parameter description and accepted values |
---|---|---|---|
name | Yes | (None.) | The file name of the Word document to be displayed. The document must be attached to a page on your Confluence site. |
page | No | The page containing the macro | The name of a Confluence page to which the Word document is attached. |
Storage format example
<ac:structured-macro ac:name="viewdoc">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="Chocolate.doc"/>
</ac:parameter>
</ac:structured-macro>
Wiki markup example
{viewdoc:page=Docs|name=My document.doc}
Last modified on Dec 2, 2015
Related content
- No related content found
Powered by Confluence and Scroll Viewport.