CreateNewDocument Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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)

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.
Show:
© 2016 Microsoft