|theForm ||formNodeP||This is the root node of the form that should be written.|
|theFilePath||r_charP||This is the path to the file on the local disk to which the form will be written.|
|triggerItem||formNodeP||This is the item that caused the form to be submitted. Set to NULL if the API receives the form in a manner other than transmission.|
|flags||r_u_long||The following flags are valid:
UFL_TRANSMIT_ALLOW allows the transmit options (that is, transmitdatagroups, transmitgroups, transmititemrefs, transmititems, transmitoptionrefs, transmitpagerefs and transmitoptions) to control which portions of the form are sent. Without this flag, the entire form will be sent regardless of the transmit options in the form.
UFL_SAVE_ALLOW allows the saveformat option to specify what format the form should be saved in. If no format is specified then the form will be saved in the same format that it is read.
Note: Specify 0 if you do not want to enable any of the transmit options.|
error = UFLWriteForm(form, "output.xfd", NULL, 0);
if (error != OK)
fprintf(stderr, "UFLWriteForm error %hd.\n", error);