The form definition file specifies that save functionality will be

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?
 
R

Ramkumar Thangavel

...
I am 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 is 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?

Submitted via EggHeadCafe
Silverlight 3D Animated Topic Selector With Titled Menu Items
http://www.eggheadcafe.com/tutorial...ed-topic-selector-with-titled-menu-items.aspx
 
R

Ramkumar Thangavel

Reason: There may be some buid-in functions used in the form and that will never allow to save as this have functionality.

Resolution: Check with the control where the default value used with build-in function and remove it.
 
D

dinker454

I have been wanting to do the same thing with my InfoPath form. Could you share your code with me? Correct me if I read your message wrong, your code will have a button on the form that will save the filled out form somewhere. I appreciate any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top