Share via


InfoPathEditor.FlushDocument method

Synchronizes the underlying data of the form with changes in the view.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub FlushDocument
'Usage
Dim instance As InfoPathEditor

instance.FlushDocument()
void FlushDocument()

Remarks

Use this method when a user clicks outside the InfoPathEditor object to the host application after making a change to a field without tabbing or otherwise committing that change to the underlying XML document of the form.

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 Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace