O'Reilly logo

Beginning InfoPath™ 2003 by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.3. Developing InfoPath Projects in .NET

If you are a developer using .NET for other projects, you won't find much of a difference when working with the InfoPath form and your code. Before going into details on developing InfoPath forms in Visual Studio .NET, you need to make sure that you have two development tools: Visual Studio .NET 2003 and InfoPath 2003 Toolkit for Visual Studio .NET.

13.3.1. Review: Installing the InfoPath 2003 Toolkit for Visual Studio .NET

You should already have VS.NET 2003 installed by this point. The downloading and installing of InfoPath 2003 Toolkit for Visual Studio .NET has already been covered in Chapter 11, "Working with Code in Your InfoPath Form" in the section titled "Managed Code with .NET."

After downloading and installing the toolkit, you can open Visual Studio .NET. When you select a new project, additional choices will be displayed, offering C# or Visual Basic InfoPath .NET projects.

13.3.2. Working with the InfoPath Namespaces

When creating InfoPath forms using .NET, you will be using the InfoPath object model just as you do when using scripting. However, instead of accessing the object model directly, Microsoft has created namespaces to support the object model, creating the necessary classes with methods, properties, and events. The following table contains some of the more useful classes available in the Microsoft.Office.Interop.InfoPath.SemiTrust namespace:

ClassPurpose
DataObjectEnables developers to manipulate the data sources ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required