Help and Support
 

powered byLive Search

A Submit event in a hosted InfoPath 2007 form always occurs first in the InfoPath form and then in the host

Article ID:922211
Last Review:February 7, 2007
Revision:1.2

SYMPTOMS

If you create a hosted Microsoft Office InfoPath 2007 form that uses the Submit event handler, the Submit event always occurs first in the InfoPath form and then in the host. If the code in the Submit event in InfoPath 2007 cancels the event because an error occurs, the Submit event in the host will not occur, and you may receive an error message that resembles the following:
The form cannot be submitted.

CAUSE

This behavior occurs because the Submit event in the InfoPath form is canceled when the CancelableArgs.Cancel property of the SubmitEventArgs(E.CancelableArgs.Cancel) class is set to true.

Note E is a parameter of the SubmitEventArgs class.

APPLIES TO
Microsoft Office InfoPath 2007
Microsoft Office Forms Server 2007

Back to the top

Keywords: 
kbtshoot kbinfo KB922211

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.