B
Benjamin Wegner
Hi!
I created a form with a button. In the buttons code I tried to save the
current document using
thisXDocument.Save();
This will trigger the OnSaveRequest event but when
e.PerformSaveOperation()
is reached, an exception will be thrown.
When I click on the menuentry 'file -> save' the event gets triggered
as well and everything works fine.
It seems that when using the menu, Infopath sets some other values
prior triggering the event.
Am I able to do the same as Infopath? e.g. use some other method than
thisXDocument.Save();?
To give you an overview:
I want to create a form where users can click buttons like 'forward to
approver', 'approve request' or 'decline request'.
Regards,
Benjamin
I created a form with a button. In the buttons code I tried to save the
current document using
thisXDocument.Save();
This will trigger the OnSaveRequest event but when
e.PerformSaveOperation()
is reached, an exception will be thrown.
When I click on the menuentry 'file -> save' the event gets triggered
as well and everything works fine.
It seems that when using the menu, Infopath sets some other values
prior triggering the event.
Am I able to do the same as Infopath? e.g. use some other method than
thisXDocument.Save();?
To give you an overview:
I want to create a form where users can click buttons like 'forward to
approver', 'approve request' or 'decline request'.
Regards,
Benjamin