Hi,
I have an infopath form that is a content type in SP2007 form library. I submit this form programmaticaaly to the form library. I want to add a button to the form to perform save instead of using the save button in form as I want to close the form after saving I tried using the option of saving programmatically and adding this.activewindow.close but it gives error and when I searched I found that this function can't be called in save event so I want to add a button to save and close. I found some ideas of using xdocument but I couldn't get it into the code. I don't know if there is a directory missing or what so kindly advise how can I achieve this.
Thanks in advance.