Share via


UI2.SetSaveAsDialogFileName Method

Sets the default file name for a form in the Save As dialog box.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Parameters

  • bstrFileName
    The file name of the form supplied to the Save As dialog box.

Remarks

If the bstrFileName argument is null, "Form" is used as the file name. The SetSaveAsDialogFileName method may be used in conjunction with the SetSaveAsDialogLocation method.

Example

In the following example, the SetSaveAsDialogFileName method of the UIObject object is used to set the default file name for the "Save As" dialog box:

thisXDocument.UI.SetSaveAsDialogFileName("Status Report.xml");

See Also

Reference

UI2 Interface
UI2 Members
Microsoft.Office.Interop.InfoPath Namespace