Hello,
This is from the Infopath SDK
Save Method: Saves the form to the Uniform Resource Locator (URL) that it is currently associated with.
expression.Save()
expression Required. An expression that returns a reference to an XDocument object.
Security Level: Can be accessed only by fully trusted forms.
Remarks: The Save method will return an error if called from a form that is not fully trusted.
Example: In the following example, the Save method of the XDocument object is used to save a form:
XDocument.Save();
Kalyan G Reddy
Infopath MVP 2007 and 2008