S
Stanley
Hi,
i am trying to close infopath in manage code but get these errors:
- object or reference not set
- security error
- The form was not found in the Xdocuments collection
- Invalid context for OM Call
- etc etc...
I've tried these codes:
- thisApplication.XDocuments.Close(thisXDocument);
- thisApplication.Quit(false);
- thisApplication.ActiveWindow.Close(false);
- thisApplication.ActiveWindow.XDocument.View.Window.Close(false)
- etc etc... every possible combination
And none of them won't close the form. Why is it so hard to just close a
simple form? Can somebody help me out? I've looked throughout the whole group
already.
I have some old forms where i use js script and there it works fine, but
when using .NET code it doesn't work anymore. It goes for lots of other
things by the way.
Regards,
Stanley
i am trying to close infopath in manage code but get these errors:
- object or reference not set
- security error
- The form was not found in the Xdocuments collection
- Invalid context for OM Call
- etc etc...
I've tried these codes:
- thisApplication.XDocuments.Close(thisXDocument);
- thisApplication.Quit(false);
- thisApplication.ActiveWindow.Close(false);
- thisApplication.ActiveWindow.XDocument.View.Window.Close(false)
- etc etc... every possible combination
And none of them won't close the form. Why is it so hard to just close a
simple form? Can somebody help me out? I've looked throughout the whole group
already.
I have some old forms where i use js script and there it works fine, but
when using .NET code it doesn't work anymore. It goes for lots of other
things by the way.
Regards,
Stanley