Copies styles from the specified template to a document.
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
The following code example uses the method to copy the styles from the specified template to the current document. This example assumes that a template file named Sales96.dot exists on the computer at C:\Program Files\Microsoft Office\Templates. To use this example, run it from the ThisDocument class in a document-level project.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.