_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)

Syntax

'Declaration
Sub TransformDocument ( _
    Path As String, _
    DataOnly As Boolean _
)
'Usage
Dim instance As _Document
Dim Path As String
Dim DataOnly As Boolean

instance.TransformDocument(Path, DataOnly)
void TransformDocument(
    string Path,
    bool DataOnly
)

Parameters

  • Path
    Type: System.String
    Required String. The path for the XSLT to use.
  • DataOnly
    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.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace