Hyperlink.CreateNewDocument Method

Creates a new document linked to the specified hyperlink.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub CreateNewDocument ( _
    FileName As String, _
    EditNow As Boolean, _
    Overwrite As Boolean _
)
'Usage
Dim instance As Hyperlink
Dim FileName As String
Dim EditNow As Boolean
Dim Overwrite As Boolean

instance.CreateNewDocument(FileName, _
    EditNow, Overwrite)
void CreateNewDocument(
    string FileName,
    bool EditNow,
    bool Overwrite
)

Parameters

  • FileName
    Type: System.String
    Required String. The file name of the specified document.
  • EditNow
    Type: System.Boolean
    Required Boolean. True to have the specified document open immediately in its associated editing environment. The default value is True.
  • Overwrite
    Type: System.Boolean
    Required Boolean. True to overwrite any existing file of the same name in the same folder. False if any existing file of the same name is preserved and the FileName argument specifies a new file name. The default value is False.

See Also

Reference

Hyperlink Interface

Hyperlink Members

Microsoft.Office.Interop.Word Namespace