N
Nevo
I'm a newbie to InfoPath and am trying to write a custom Save event handler.
I went to Tools, Form Options, Open and Save, checked "Save using custom
code" and clicked the Edit button.
The VSTA IDE opened and a template FormEvents_Save method is there. In the
InternalStartup() code, there's a line to add this event handler to
EventManager.FormEvents.Save.
I wrote my custom code and saved it. I saved the form template.
When I attempt to fill out a form based on this template, I get the
following error when I try to save the form:
"Microsoft Office InfoPath"
"InfoPath cannot save the form.
The form definition (.xsf) file specifies that save functionality will be
defined in code, but the code does not define an OnSaveRequest event handler."
Should I be writing my own OnSaveRequest handler? If so, how? If not, how do
I get InfoPath to put back in the default that should be there?
I went to Tools, Form Options, Open and Save, checked "Save using custom
code" and clicked the Edit button.
The VSTA IDE opened and a template FormEvents_Save method is there. In the
InternalStartup() code, there's a line to add this event handler to
EventManager.FormEvents.Save.
I wrote my custom code and saved it. I saved the form template.
When I attempt to fill out a form based on this template, I get the
following error when I try to save the form:
"Microsoft Office InfoPath"
"InfoPath cannot save the form.
The form definition (.xsf) file specifies that save functionality will be
defined in code, but the code does not define an OnSaveRequest event handler."
Should I be writing my own OnSaveRequest handler? If so, how? If not, how do
I get InfoPath to put back in the default that should be there?