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:
Class | Purpose |
---|---|
DataObject | Enables developers to manipulate the data sources ... |
Get Beginning InfoPath™ 2003 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.