' Call theForm.writeForm. theForm is the root node of the form to
' be written. The parameters are:
' 1. output.xfd : the filename you want to use (you could also use
' a path here).
' 2. Nothing : since we do not want to set a triggeritem.
' 3. 0 : since we do not want to allow the transmit options to work.
' An exception is thrown if there is a problem.
TheForm.WriteForm "output.xfd", Nothing, 0