Oh! I've got it!
Now I have another error:
"InfoPath cannot save the form with the following name: c:\MyForm.xml"
What is the problem now?
> I've got a problem with SaveAs Method
>
[quoted text clipped - 6 lines]
>
> Thanx!
SaveAs() is a level 3 security method -- meaning your form must be set to Full Trust. There are other implications for that setting, which you can learn by doing a search for the term in the newsgroup.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
I've got a problem with SaveAs Method
I write:
XDocument.SaveAs("C:\MyForm.xml");
And get an error: "Permission Denied" in this line.
What can be the problem?
Thanx!
ivan yuji Matsumoto - 28 Dec 2004 15:39 GMT
Can i save the form in the sharepoint using this command?if i use a fully trusted form i can do that?
Thanks