Office Word Macro

Still need help?

The Atlassian Community is here for you.

Ask the community

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 nameRequiredDefaultParameter description and accepted values
nameYes(None.)

The file name of the Word document to be displayed. The document must be attached to a page on your Confluence site.

pageNoThe page containing the macroThe 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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.