Hello everyone,
I have a form library with already existing items. I would like to delete all the attachments inside the repeating section of the form programmatically using C#. I am at a stage where I can delete the attachments but when the form is saved back to the library, I get the error when I try to open the form "the processing instruction in the file is missing or invalid" Seems like it is missing the first few lines. Any help is appreciated.
Also just wanted to mention, the program is a Window Application that loops through all the items in the form library and NOT the InfoPath code withing the form.
Thanks!
Sr. SharePoint Developer