Edytuj

Udostępnij za pośrednictwem


SharedWorkspace.CreateNew(Object, Object) Method

Definition

Creates a new document workspace on the server and adds the active document to the new shared workspace.

public void CreateNew (object URL, object Name);
abstract member CreateNew : obj * obj -> unit
Public Sub CreateNew (Optional URL As Object, Optional Name As Object)

Parameters

URL
Object

Optional String. The URL for the parent folder in which the new shared workspace is to be created. If you do not supply a URL, the new shared workspace is created in the user's default server location.

Name
Object

Optional String. The name of the new shared workspace. Defaults to the name of the active document without its file extension. For example, if you create a shared workspace for Budget.xls, the name of the new shared workspace becomes "Budget".

Remarks

Use the CreateNew method to create a new shared workspace for the active document. Omit the 2 optional arguments to create the workspace using the name of the active document in the user's default server location.

The CreateNew method raises an error if the active document has changes that have not been saved. The document must be saved before it can be added to a shared workspace.

Applies to