#Import styles in word code#
Please see the code below.ĭocument srcDoc = new Document( "Document1.doc") If you append each section from the source document then you should not have these issues regarding formatting changes. Your administrator can change this limit using the system property.I think you may be having these issues because you are inserting the content at the block node level. In order to prevent out of memory errors, we limit the uncompressed size of the file you can import to 20 MB. If your document contains characters that are the same as Confluence wiki markup (for example square brackets, hashes etc) these characters may be automatically converted to their wiki markup value when you import your document, or wrapped in a wiki markup macro to preserve the formatting. Importing documents containing wiki markup Screenshot: Import Word options for a document that contains multiple heading levels.Ĭonfluence can import the content from Microsoft Word 97-2013 documents (.doc and. Level Headings - creates multiple pages in a hierarchy based on the heading levels in the document.Ī preview of the pages that will be created appears under Document Outline.If the document contains Word heading styles you can choose to create multiple pages based on the heading. The change is not shown in the Page History for the page.
![import styles in word import styles in word](https://legalofficeguru.com/wp-content/uploads/2016/08/Word-2013-Styles-create-new-style-1.png)
Remove existing pages with the same title as imported pages - remove original pages and then create new pages.The change will be shown in the Page History for the page. Replace existing pages with imported pages of the same title - overwrite the content of existing pages.Rename imported pages if page name already exists - new pages get a new name (a number added to the end of the page title).Delete existing children of - any existing children of the current page will be removed when the content of the page is replaced.Ĭontrols how page name conflicts (a page with the same title already exists in the space) are handled.The title of this page will change to the title you specified in the Root page title field. Replace - content will be imported into the current page.Import as a new page in the current space - a new page will be created as a child of the space home page.This is the title of the page that will be created or updated by the import.Ĭontrols whether the document is imported into the current page (the page you were viewing when you selected Tools > Import) or created as a new page. There are a number of options when importing a Word document that control how pages are created, whether the import should overwrite existing pages in the space, and how it should handle page name conflicts. You can then view and edit this page as normal. There's no connection between the original Word document and this page. When the upload has finished, pages will be created with the content of the Word documents. Choose whether to create a single page or multiple pages based on the heading styles in the file (this option is only available if the file contains heading styles).
#Import styles in word how to#
![import styles in word import styles in word](http://www.addbalance.com/usersguide/images/2010StylesOrganizer.png)
![import styles in word import styles in word](https://i.ebayimg.com/images/g/rlIAAOSw-Cti14QS/s-l500.png)