Programmatically publishing to a content type within SharePoint? - InfoPath Dev
in

InfoPath Dev

Programmatically publishing to a content type within SharePoint?

Last post 10-05-2010 11:41 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-01-2010 07:50 AM

    Programmatically publishing to a content type within SharePoint?

    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.

  • 10-05-2010 11:41 PM In reply to

    Re: Programmatically publishing to a content type within SharePoint?

    Have you looked at stsadm.exe or the SharePoint object model?

    Qdabra Software has a SharePoint / InfoPath accelerator (DBXL) that supports programmatically deploying content types and we can show you a demo of that if you are interested.

    Best regards,

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.