13. Writing Code in InfoPath

Getting Started

In this chapter, we’ll start by showing you how to add code to a new or existing InfoPath form template. InfoPath 2010 supports writing managed code, although InfoPath Filler will still run existing solutions written using script in previous editions. In this chapter, we’ll use Visual Studio 2010 Tools for Applications (VSTA), which is the default programming environment for writing form code. We’ll cover several options that configure the code-authoring environment.

Then we’ll introduce the InfoPath object model (OM) and tell you how using it can enhance your form templates. Once you understand the high-level objectives of using the OM and its event-based model, we will then look at how to start using ...

Get Designing Forms for SharePoint and InfoPath: Using InfoPath Designer 2010, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.