Save Form in a directory (2)
I would like to give more information about my problem I have posted yesterday
I have built this function (JScript)for saving form by clicking on a button, like described in the book Professionnal InfoPath 2003, chap.7, page 114. I have still an error, the form is not saved in my directory:
function SaveBtn::OnClick(eventObj)
{
try
{
XDocument.SaveAs("C:\Temp\MyForm1.xml")
eventObj.ReturnStatus = true;
}
catch(e)
{
eventObj.ReturnStatus = false;
}
}
I hope someone can help me.
Best regards.
|