InfoPathEditor.SetSubmitToHostEventHandler(ISubmitToHostEventHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the event handler in the host application for handling the Submit() method of the SubmitToHostAdapter object.
public:
void SetSubmitToHostEventHandler(Microsoft::Office::Interop::InfoPath::ISubmitToHostEventHandler ^ pHandler);
public void SetSubmitToHostEventHandler (Microsoft.Office.Interop.InfoPath.ISubmitToHostEventHandler pHandler);
abstract member SetSubmitToHostEventHandler : Microsoft.Office.Interop.InfoPath.ISubmitToHostEventHandler -> unit
Public Sub SetSubmitToHostEventHandler (pHandler As ISubmitToHostEventHandler)
Parameters
- pHandler
- ISubmitToHostEventHandler
The interface that must be implemented in the custom application to handle the event from the InfoPathEditor object.
Remarks
Sets the function in the host application that is used as the callback function when submitting data back to the host application. To configure the data connection for submitting to the host application, open the form template in InfoPath design mode, click Submit Options on the Tools menu, select the Allow users to submit this form check box, select Hosting environment in the drop-down list, and then click Add.
For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form ApplicationWhat's New for InfoPath Developers.