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:

  1. The basics of designing InfoPath 2010 form templates
  2. How to write code in either C# or Visual Basic
  3. How to work with XML data

InfoPath Programming Languages

InfoPath 2010 supports writing code in either C# or Visual Basic .NET managed code languages. InfoPath 2010 form templates do not support scripting languages anymore like the previous versions of InfoPath did.

Which Language Is Your Favorite One?

Loading poll. Please Wait...

Test Your InfoPath Coding Knowledge!

Get Started with InfoPath 2010 Programming

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

This InfoPath 2010 programming book first covers the basics of writing C# code for InfoPath 2010 form templates before moving on to exploring more complex topics such as writing C# code for InfoPath with ASP.NET web services, databases (Microsoft Access 2010 and SQL Server 2008), Word 2010, and SharePoint 2010. InfoPath 2010 Cookbook 3 consists of 101 step-by-step tutorials spread across 9 chapters and 478 pages.

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

Amazon Price: $49.95 (as of 06/01/2012)Buy Now

Recipe 85: Retrieve return values after data has been submitted to a web service

The following demo video shows the completed solution of recipe 85 from InfoPath 2010 Cookbook 3 in which you will learn how to write C# code in InfoPath 2010 and to create a web service that can be used to submit data to a SQL Server database and then return information back to the InfoPath form used for submitting the data.
Submit InfoPath to web service with return values
by bizsupportonline | video info

0 ratings | 644 views
curated content from YouTube

Recipe 88: Perform create, update, and delete actions on an Access table with Memo field

The following demo video shows the completed solution of recipe 88 from InfoPath 2010 Cookbook 3 in which you will learn how to write C# code behind an InfoPath 2010 Filler form that can be used to maintain (insert, update, and delete) data in a Microsoft Access database table that contains a Memo field.
Access database CRUD in InfoPath 2010
by bizsupportonline | video info

0 ratings | 413 views
curated content from YouTube

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.

Submit-retrieve InfoPath to-from SQL Server
by bizsupportonline | video info

0 ratings | 924 views
curated content from YouTube

Recipe 97: Use an InfoPath form to add a recurring all day event to a SharePoint calendar

The following demo video shows the completed solution of recipe 97 from InfoPath 2010 Cookbook 3 in which you will learn how to write C# code behind an InfoPath 2010 form that can be used to add normal events, all-day events, recurring events, and recurring all-day events to a SharePoint 2010 calendar.
SharePoint all day recurring event InfoPath form
by bizsupportonline | video info

0 ratings | 213 views
curated content from YouTube

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.

Autonumber InfoPath forms SharePoint 2010
by bizsupportonline | video info

0 ratings | 605 views
curated content from YouTube

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.

Send email with attachments from InfoPath form
by bizsupportonline | video info

0 ratings | 725 views
curated content from YouTube

Recipe 101: Save a form as a PDF document in a SharePoint document library

The following demo video shows the completed solution of recipe 101 from InfoPath 2010 Cookbook 3 in which you will learn how to write C# code to first automatically generate a Word document from an InfoPath form that is submitted to a SharePoint form library, and then write C# code to schedule a Word Automation Services job in SharePoint, so that the generated Word document can be converted into a PDF document.
Convert InfoPath to Word and PDF in SharePoint 2010
by bizsupportonline | video info

0 ratings | 635 views
curated content from YouTube

InfoPath 2010 Cookbook 3

101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

Amazon Price: $49.95 (as of 06/01/2012)Buy Now

More InfoPath lenses

Loading

Share Your Thoughts...

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 »

Feeling creative? Create a Lens!

InfoPath 2010 Book 

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

Amazon Price: $39.95 (as of 06/01/2012)Buy Now

InfoPath with SharePoint 

Loading

InfoPath Solutions Blog 

Loading