How to Write Code in InfoPath 2010
Ranked #6,244 in Computers & Electronics, #119,672 overall | Donates to The Leukemia & Lymphoma Society
Introduction to How to Write Code in InfoPath
Whatever functionality you cannot create by using rules only, it is highly likely that you can create such functionality by writing code in InfoPath 2010.
The goal of this lens is to help you get started with writing code in InfoPath 2010.
Key Skills for the InfoPath Developer
Things you need to be able to do before you can start writing code in InfoPath 2010
Before you can start to write code in InfoPath 2010, you must already know:
- The basics of designing InfoPath 2010 form templates
- How to write code in either C# or Visual Basic
- How to work with XML data
InfoPath Programming Languages
Which Language Is Your Favorite One?
Test Your InfoPath Coding Knowledge!
Get Started with InfoPath 2010 Programming
InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers
Recipe 85: Retrieve return values after data has been submitted to a web service
Recipe 88: Perform create, update, and delete actions on an Access table with Memo field
Recipe 90/91: Submit/retrieve an entire InfoPath form to/from SQL Server
A common way to submit InfoPath forms to a SQL Server database is to use a web service. The following demo shows the solution presented in recipe 90 and recipe 91 of InfoPath 2010 Cookbook 3 that uses a .NET web service to submit the XML of entire InfoPath forms to a SQL Server 2008 R2 database table, and then retrieve the forms individually in a browser form in SharePoint 2010.
Recipe 97: Use an InfoPath form to add a recurring all day event to a SharePoint calendar
Recipe 99: Auto number InfoPath forms with IDs in SharePoint 2010
There may be times when you would like users to submit InfoPath forms to a SharePoint form library and then have SharePoint automatically assign a name plus a number in a sequential manner to the forms that are submitted.
The following demo shows the solution presented in recipe 99 of InfoPath 2010 Cookbook 3 that auto numbers InfoPath 2010 forms in a SharePoint 2010 form library with a name plus and an ID.
Recipe 100: Use an InfoPath form to send an email with attachments
The following demo video shows you the completed solution of recipe 100 from InfoPath 2010 Cookbook 3 in which you will learn how to write C# code for a custom workflow activity to retrieve file attachments from an InfoPath form that is submitted to a SharePoint form library, add those file attachments as attachments to an email, and then send the email to users that were selected in SharePoint Designer 2010 when setting up the workflow.
Recipe 101: Save a form as a PDF document in a SharePoint document library
InfoPath 2010 Cookbook 3
101 Code Recipes for C# Developers
InfoPath 2010 Developer Resources
Links to a few useful web pages for InfoPath developers
More InfoPath lenses
by SYM_Wong-A-Ton
S.Y.M. Wong-A-Ton is the author of InfoPath 2010 Cookbook 3, an InfoPath 2010 programming book for C# developers. more »
- 5 featured lenses
- Winner of 8 trophies!
- Top lens » Microsoft Office InfoPath
