XmlForm.SetSaveAsDialogLocation(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the default path for saving the form using the SaveAs dialog box.
public:
abstract void SetSaveAsDialogLocation(System::String ^ pathname);
public abstract void SetSaveAsDialogLocation (string pathname);
abstract member SetSaveAsDialogLocation : string -> unit
Public MustOverride Sub SetSaveAsDialogLocation (pathname As String)
Parameters
- pathname
- String
The path to save to.
Exceptions
The path is invalid.
The parameter passed to this method is a null reference (Nothing in Visual Basic).
The parameter passed to this method is not valid. For example, it is of the wrong type or format.
Examples
In the following code example, the SetSaveAsDialogLocation method of the XmlForm class is used to set the default path for the SaveAs dialog box to "C:\SampleFiles\".
this.SetSaveAsDialogLocation("C:\\SampleFiles\\");
Me.SetSaveAsDialogLocation("C:\SampleFiles\")
Remarks
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.