ArcObjects Library Reference  (Framework)    

IApplication.NewDocument Method

Creates a new document in this application.

[Visual Basic 6.0]
Sub NewDocument(
    [ByVal selectTemplate As Boolean], _
    [ByVal templatePath As String] _
) As Empty
[Visual Basic .NET]
Public Sub NewDocument ( _
    [ByVal selectTemplate As Boolean], _
    [ByVal templatePath As String] _
)
[C#]
public void NewDocument (
    bool selectTemplate,
    string templatePath
);
[C#]

Optional Values

selectTemplate   Supply false as a default value.
templatePath   To indicate that this parameter is undefined, pass in Type.Missing.

Product Availability

Available with ArcGIS Desktop.

Description

selectTemplate Specify True if you want the New document dialog to be opened to allow the user to select a template. [Optional]

templatePath is a string representing the path and filename of the template to base the new document on if selectTemplate is False. [Optional]

Remarks

If selectTemplate is True, the New document dialog is displayed.

If templatePath is not specified, the New document dialog is displayed regardless of the value of selectTemplate.

Note, this method does not work in ArcCatalog.

See Also

IApplication Interface

Example

IApplication NewDocument Example