UI2.SetSaveAsDialogLocation Method
Sets the initial location at which the Save As dialog starts to browse when it is opened.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Parameters
- bstrLocation
The location, expressed as a URL, at which the Save As dialog box starts browsing.
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 method.
Example
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.SetSaveAsDialogLocation(@"\\MyShare\\Forms");
See Also
Reference
UI2 Interface
UI2 Members
Microsoft.Office.Interop.InfoPath Namespace