Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / InsertDocument Method / InsertDocument(String,ContentType,Paragraph) Method
The Filename of the document to insert.
The ContentType of the document to insert (Html or Rtf).
The Paragraph after which to insert the document. If null, the document will be added at the current position in the Document.


In This Topic
    InsertDocument(String,ContentType,Paragraph) Method
    In This Topic
    Inserts an html or rtf document in the Document.
    Syntax
    'Declaration
     
    Public Overloads Sub InsertDocument( _
       ByVal filename As String, _
       ByVal type As ContentType, _
       Optional ByVal p As Paragraph _
    ) 
    'Usage
     
    Dim instance As Document
    Dim filename As String
    Dim type As ContentType
    Dim p As Paragraph
     
    instance.InsertDocument(filename, type, p)
    public void InsertDocument( 
       string filename,
       ContentType type,
       Paragraph p
    )

    Parameters

    filename
    The Filename of the document to insert.
    type
    The ContentType of the document to insert (Html or Rtf).
    p
    The Paragraph after which to insert the document. If null, the document will be added at the current position in the Document.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also