Modifica

Condividi tramite


UI2.SetSaveAsDialogLocation(String) Method

Definition

Sets the initial location at which the Save As dialog starts to browse when it is opened.

public:
 void SetSaveAsDialogLocation(System::String ^ bstrLocation);
public void SetSaveAsDialogLocation (string bstrLocation);
abstract member SetSaveAsDialogLocation : string -> unit
Public Sub SetSaveAsDialogLocation (bstrLocation As String)

Parameters

bstrLocation
String

The location, expressed as a URL, at which the Save As dialog box starts browsing.

Examples

In the following example, the SetSaveAsDialogLocation method of the UIObject object is used to set the initial location for the "Save As" dialog:

thisXDocument.UI.<span class="label">SetSaveAsDialogLocation</span>(@"\\MyShare\\Forms");

Remarks

The location specified must be an absolute path and it should not include a file name. InfoPath handles invalid paths, however, and no error message is generated if an invalid path is specified for the bstrLocation argument. The SetSaveAsDialogLocation method may be used in conjunction with the SetSaveAsDialogFileName(String) method.

Applies to