Hi,
I am currently programmatically generating infopath forms with code-behind, and for each generated form, I need to be able to host the form template as a content type. Since I have a farm solution, I know that I would usually have to publish manually to admin-approved form template as opposed to form libraries or content types directly and afterwards create content types which reference those form templates. I was wondering what I would need to do to achieve the following results:
1) Programmatically activate a form template to a site collection (this is the big question mark for me)
2) Programmatically generate a content type which references said form template (I believe I already have this part down using the SP Object Model)
Any assistance would be MUCH appreciated.