This documentation is archived and is not being maintained.

SaveAs Method

Office 2003

Saves the form to the specified Uniform Resource Locator (URL).

expression.SaveAs(ByVal bstrFileUrl As String)

expression Required. An expression that returns a reference to an XDocument object.

bstrFileUrl Required String. The URL address that the form should be saved to.

Security Level

3: Can be accessed only by fully trusted forms.


The SaveAs method will return an error if called from a form that is not fully trusted.

Note  The URL that the form is saved to must be in the same domain as the form that calls the SaveAs method.


In the following example, the SaveAs method of the XDocument object is used to save a form:


Applies to | XDocument Object