I have a sharepoint 2010 list, which uses the default sharepoint form template for adding/editing items. I need to use an Infopath 2010 form template. I need to make this change programmatically. I have the .xsn file which i can publish to the sharepoint list (using the 'quick publish' button in the Infopath 2010 Form Designer). I need to know how to perform this programmatically and replace the manual step of clicking on the 'Quick Publish' button.
Is this possible? If yes, how?