Weird, I checked the SDK before I claimed that it didn't have to be Full Trust and it said this:
quote:
Close Method (XDocuments Collection)
See Also Applies To Example Specifics
Closes the specified Microsoft Office InfoPath 2003 form.
expression.Close(ByVal varIndex As Variant)
expression Required. An expression that returns a reference to the XDocuments collection.
varIndex Required Variant. The string value that specifies the Uniform Resource Identifier (URI) of a form, a long integer value that specifies the positional index of an XDocument object within the XDocuments collection, or a reference to an XDocument object.
Security Level
2: 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.
I know there are other methods that close the form, such as Application.Quit() that are level 3, but I think this is because it closes the entire InfoPath application and all open forms, whereas XDocuments.Close(0) only closes one InfoPath form (which is referenced by the number passed in). For this reason, the XDocuments.Close() method can be safely used without being fully trusted. This is my understanding, please correct me if I'm wrong.
Anyway, glad you figured it out zmike! Check out this tutorial for publishing signed forms to Sharepoint:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkDeployURNFormToSharePoint_HV01086376.asp---------------
Matt Faus
InfoPath Dev Texas
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge