- General
- Free features
- Paid features
- Frequently Asked Questions
- Release notes
Exporting wikit pages or page trees to Word document
Overview
Wiki PRO allows you to export individual wiki pages and page trees to Microsoft Word documents. This is useful for archiving, sharing, and creating documents that follow your organization’s standards.
By using custom Word templates, you can easily generate documents that match your organization’s branding and formatting.
Export a Wiki Page to a Word Document
To export a single wiki page:
- Select the wiki page.
- Open the Export menu.
- Select Export page.
- Select one of the available Word document templates.
Export a Wiki Page Tree to a Word Document
To export a wiki page together with all of its subpages:
- Select the wiki page.
- Open the Export menu.
- Select Export page tree.
- Select one of the available Word document templates.
When exporting a page tree, each wiki page is exported as a separate section. A page break is inserted before the next page.
Creating Your Own Custom Word Template
You can use an existing Word document that already contains your organization’s logo, styles, and formatting as the basis for a Wiki PRO template.
To create a custom template:
-
Open a Word document that follows your organization’s standards and styling.
-
At the location where the exported content should begin, insert the text
%%HTML_CONTENT%%.
-
Save the document.
-
Open the Wiki PRO Project Settings.
-
Select the Document Templates tab.
-
Click Add New Library Item in the left-hand menu.
-
Enter a name, ID, and scope for the template.
-
Click Change Item.
-
Upload the document.
-
Click Save.
Your custom template is now available for use when exporting Word documents.
Tips for Creating Word Templates
Document Properties
Word document properties can be used to display information that is populated automatically during export.
For example, you can insert the Title property on the first page or in headers and footers.
When exporting a Word document, the Title property is populated from the document title. If no title is available, the query name is used instead.
By default, the following properties are populated:
- Title
- Creator
- Created
- Modified
- Last Modified By
These properties can be used to create dynamic headers and footers.
Automatically Updating the Table of Contents and Fields
To automatically refresh the table of contents and document fields when the document is opened, add an AutoOpen macro to the template.
Create an AutoOpen Macro
Create a new macro named AutoOpen in the template document itself (not in Normal.dotm):
Sub AutoOpen()
ActiveDocument.Fields.Update
End Sub
Save the document as a macro-enabled Word document (.docm).
Upload the .docm file as a template in Wiki PRO.
Note: Ensure that documents downloaded from Azure DevOps are marked as trusted. Otherwise, Word may prevent macros from running.
Wiki PRO