A Submit event in a hosted InfoPath 2007 form always occurs first in the InfoPath form and then in the host
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. CAUSEThis 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.
| Article Translations
|

Back to the top
