_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)
Usage
Dim Path As String
Dim DataOnly As Boolean
Dim _Document1 As _Document
_Document1.TransformDocument(Path, DataOnly)
Syntax
Sub TransformDocument( _
<InAttribute()> ByVal Path As String, _
<InAttribute()> Optional ByVal DataOnly As Boolean _
)
void TransformDocument(
[In] string Path,
[In, Optional] bool DataOnly
);
public: Void TransformDocument(
String^ Path,
Boolean DataOnly
);
public void TransformDocument(
/*in*/System.String Path,
/*in*/boolean DataOnly
);
function TransformDocument(
Path : String,
DataOnly : Boolean
);
Parameters
- Path
Required String. The path for the XSLT to use.
- DataOnly
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
_Document Interface
Microsoft.Office.Interop.Word Namespace