Share via


Developing Windows Applications To Perform InfoPath Forms Services Administration Tasks

Building a Windows application that works with InfoPath Forms Services allows you to automate administrative tasks, such as deploying form templates, gathering information about form templates already deployed, or configuring the server running InfoPath Forms Services.

The classes that support these operations are contained in the Microsoft.Office.InfoPath.Server.Administration namespace, which is part of the Microsoft.Office.InfoPath.Server.dll assembly. For example, the FormsService class allows configuration of InfoPath Forms Services, and the FormTemplateCollection class is a collection of form templates that have been deployed using the SharePoint 3.0 Central Administration site. The other namespace in the assembly that is designed for use by developers is Microsoft.Office.InfoPath.Server.Controls, which contains the XmlFormView class. This class is used to host InfoPath forms in a custom Web page. For more information about using the XmlFormView class, see Authoring Custom Web Pages That Contain the XmlFormView Control.

In this section, you will learn how to build three Windows applications that use classes from the Microsoft.Office.InfoPath.Server.Administration namespace to manage and configure InfoPath Forms Services. You will need Microsoft Visual Studio 2005 installed on a server running InfoPath Forms Services, as part of either Microsoft Office Forms Server 2007 or Microsoft Office SharePoint Server 2007.

In This Section

  • How to: Verify a Batch of Form Templates
    Build a Windows application to verify all form templates located in a folder and list any converter messages associated with them. Can also be modified to upload all form templates in a folder. [Visual Basic]

For each task, you can create a new Windows Application project in Visual Studio 2005 in your language of choice, or create additional forms for each task.

Note

While the code examples in the Microsoft.Office.InfoPath.Server.Administration namespace use a console window to display information, and the stsadm.exe command-line tool is useful for configuring SharePoint, this section will focus solely on developing a Windows application using Windows controls and Visual Basic and C# code.

Reference

Microsoft.Office.InfoPath.Server.Administration