Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
To clarify, would you require to export the data on the InfoPath form to an Excel file when the form is submitted? Also, are you able to use custom C# code on the submit action?
Setting the value is simple SPUtility.GetSPField("Body").SetValue("the_value") but the challenge is you need to set the value at the caret position isn't it?