Embedding InfoPath Forms Service Forms in SharePoint
This post has been replaced with this one! This provides a link to a comprehensive document describing this technique.
Question: When using InfoPath Forms with the InfoPath Forms Service the form displayed in the browser replaces the SharePoint Form from which it was launched. Is there a way of embedding the form in an SharePoint page so that users will not close the browser once they’ve finished with the form and exit from the SharePoint application?
Answer: Yes! Here’s a brief description of the steps to do this. The “XmlFormView” web part can be used to host an InfoPath Server form on a Web Part page within a SharePoint application. This web part is located in the assembly Microsoft.Office.InfoPath.Server.dll and the web part will need to be hosted in your site by adding an entry in web.config’s “SafeControls” element.
Once this has been done you can publish an InfoPath template to a SharePoint library and make it available as the template for a form library. Then, create a Web Part page in your site and add an instance of the “XmlFormView” library. Configure this web part to reference the InfoPath template through the “XmlLocation” property.
Finally, you will need to add a “Submit” button on the form as you will need to save the form’s data once the user has completed the form.