DocumentClass.Merge Method 

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim FileName As String
Dim MergeTarget As Object
Dim DetectFormatChanges As Object
Dim UseFormattingFrom As Object
Dim AddToRecentFiles As Object
Dim documentClass1 As DocumentClass
documentClass1.Merge(FileName, MergeTarget, DetectFormatChanges, UseFormattingFrom, AddToRecentFiles)

Syntax

Public Overridable Sub Merge( _
    <InAttribute()> ByVal FileName As String, _
    <InAttribute()> Optional ByRef MergeTarget As Object, _
    <InAttribute()> Optional ByRef DetectFormatChanges As Object, _
    <InAttribute()> Optional ByRef UseFormattingFrom As Object, _
    <InAttribute()> Optional ByRef AddToRecentFiles As Object _
)
public virtual void Merge(
    [In] string FileName, 
    [In, Optional] ref object MergeTarget, 
    [In, Optional] ref object DetectFormatChanges, 
    [In, Optional] ref object UseFormattingFrom, 
    [In, Optional] ref object AddToRecentFiles
);
public: Void Merge(
    String^ FileName, 
    &Object^ MergeTarget, 
    &Object^ DetectFormatChanges, 
    &Object^ UseFormattingFrom, 
    &Object^ AddToRecentFiles
);
public void Merge(
    /*in*/System.String FileName, 
    /*in*/System.Object MergeTarget, 
    /*in*/System.Object DetectFormatChanges, 
    /*in*/System.Object UseFormattingFrom, 
    /*in*/System.Object AddToRecentFiles
);
public function Merge(
     FileName : String, 
     MergeTarget : Object, 
     DetectFormatChanges : Object, 
     UseFormattingFrom : Object, 
     AddToRecentFiles : Object
);

Parameters

  • FileName
    This parameter is intended for internal use only.
  • MergeTarget
    This parameter is intended for internal use only.
  • DetectFormatChanges
    This parameter is intended for internal use only.
  • UseFormattingFrom
    This parameter is intended for internal use only.
  • AddToRecentFiles
    This parameter is intended for internal use only.

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

DocumentClass Class
Microsoft.Office.Interop.Word Namespace

Other Resources

DocumentClass Members