This documentation is archived and is not being maintained.

_Document.TransformDocument Method

Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the specified document and replaces the document with the results.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void TransformDocument(
	string Path,
	bool DataOnly


Type: System.String
Required String. The path for the XSLT to use.
Type: System.Boolean
Optional Boolean. True applies the transformation only to the data in the document, excluding Microsoft Word XML. False applies the transform to the entire document, including Word XML. Default value is True.