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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.