Xceed Words for .NET v5.2 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / InsertDocument Method / InsertDocument(Document,Boolean,Boolean,MergingMode) Method
Represents the document to be inserted. This document will be inserted at the end of the base document.
If the value is true, the document is added at the end. If the value is false, the document is added at the beginning.
If the value is true, each joined document will be located in its own section. If the value is false, the joined documents will remain in the same section.
The action to take when merging two documents, and either two styles have the same name but with different attributes, or the resulting document needs to have headers/footers.


In This Topic
    InsertDocument(Document,Boolean,Boolean,MergingMode) Method
    In This Topic
    Inserts the contents of another document at the end of this Document.
    Syntax
    'Declaration
     
    
    Public Overloads Sub InsertDocument( _
       ByVal remote_document As Document, _
       Optional ByVal append As Boolean, _
       Optional ByVal useSectionBreak As Boolean, _
       Optional ByVal mergingMode As MergingMode _
    ) 
    'Usage
     
    
    Dim instance As Document
    Dim remote_document As Document
    Dim append As Boolean
    Dim useSectionBreak As Boolean
    Dim mergingMode As MergingMode
     
    instance.InsertDocument(remote_document, append, useSectionBreak, mergingMode)

    Parameters

    remote_document
    Represents the document to be inserted. This document will be inserted at the end of the base document.
    append
    If the value is true, the document is added at the end. If the value is false, the document is added at the beginning.
    useSectionBreak
    If the value is true, each joined document will be located in its own section. If the value is false, the joined documents will remain in the same section.
    mergingMode
    The action to take when merging two documents, and either two styles have the same name but with different attributes, or the resulting document needs to have headers/footers.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also