Xceed Words for .NET v5.0 Documentation
Xceed.Words.NET Assembly / Xceed.Words.NET Namespace / DocX Class / Create Method / Create(String,DocumentTypes) Method
The fully qualified or relative filename.


In This Topic
    Create(String,DocumentTypes) Method
    In This Topic
    Creates a DocX Document using a fully qualified or relative filename.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal filename As String, _
       Optional ByVal documentType As DocumentTypes _
    ) As DocX
    'Usage
     
    Dim filename As String
    Dim documentType As DocumentTypes
    Dim value As DocX
     
    value = DocX.Create(filename, documentType)
    public static DocX Create( 
       string filename,
       DocumentTypes documentType
    )

    Parameters

    filename
    The fully qualified or relative filename.
    documentType

    Return Value

    A DocX object which represents 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