Writing event validation for an expense report form

Let's work on a sample form and use some of the events available in Microsoft Office InfoPath 2007. Let's start by creating a company expense report form, and implementing the events for the validation of the user interface.

We are using most of the events available in InfoPath 2007 in the expense report for some of the user interface validation.

  1. Start Microsoft Visual Studio 2008.
  2. On the File menu, click on New Project.
  3. In the New Project dialog box, expand Visual C# project types.
  4. Select New project. Under Office select 2007, and select InfoPath 2007 Form template. Name the project as per your requirements.
  5. The Design Template dialog box is displayed. This is where you choose the appropriate template ...

Get VSTO 3.0 for Office 2007 Programming now with O’Reilly online learning.

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