SharePoint: Programmatically Creating InfoPath Form Instance Documents Part 2 of 2


Continuing on from part 1 of this 2 part series, we discovered the hows and whys of creating InfoPath form instance documents. This post brings together that information and demonstrates the code steps required to create an InfoPath form instance document and post it to a SharePoint document library. First we’ll grab the SharePoint content … Continue reading SharePoint: Programmatically Creating InfoPath Form Instance Documents Part 2 of 2

SharePoint: Programmatically Creating InfoPath Form Instance Documents Part 1 of 2


In this series of posts we will be creating InfoPath form instance (XML) documents programmatically using the SharePoint object model. In contrast to other articles about this subject, we will extract the goo required directly from the InfoPath form XSN file itself, the correct  InfoPath XSN file will be determined by the Content Type associated with … Continue reading SharePoint: Programmatically Creating InfoPath Form Instance Documents Part 1 of 2

SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 3 of 2


Like the Spanish Inquisition, “Our chief weapon is surprise…surprise and fear…fear and surprise…. Our two weapons are fear and surprise…and ruthless efficiency……” In part 1 of this 2 part series we created an InfoPath form which used the SharePoint Object Model in it’s code behind to create new Task list items. In part 2 of … Continue reading SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 3 of 2

SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 2 of 2


In part 1 we created an InfoPath form which used the SharePoint Object Model to create a new Task list item in a SharePoint site. In this post we’ll publish that form to SharePoint and hook it into the user interface using a content editor web part. To publish the form, click “Publish Form Template…” … Continue reading SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 2 of 2

SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 1 of 2


There are many options for submitting data from InfoPath forms to SharePoint, SQL Server, Web Services etc, there aren’t so many obvious options for submitting data from an InfoPath form to a SharePoint list however. One option is to use the SharePoint Object Model to create list items using data collected in the form, in this … Continue reading SharePoint: Using the SharePoint Object Model with InfoPath Form Code Behind Part 1 of 2

SharePoint: Non-InfoPath XML Form Property Promotion and Demotion


In a previous post, I described how you could provision SharePoint promoted property columns for InfoPath forms using code, rather than using the InfoPath client designer. In the same vane, this post demonstrates how to support non-InfoPath XML forms in SharePoint; Using the SharePoint built-in XML parser to automatically determine the content type based on … Continue reading SharePoint: Non-InfoPath XML Form Property Promotion and Demotion