How to close InfoPath, not just the document

F

foomonkey

In my InfoPath form, I am using the Submit feature. When the form is
submitted, I want InfoPath to shutdown, not just close the instance
document. Do I REALLY have to make the form Fully Trusted and jump
through those big hoops? Shouldn't there just be some kind of check box
that says to close InfoPath on submit? Or shouldn't there be something
like:

Application.Close();

Please?

Thanks.
Andrew
 
M

mdsmitty

This will close the application if you are using VBScript. It will also
prompt the user to save if they haven't done so. To save the form has to be
trusted.

I have this in a Control Button at the bottom of my form(not using the
Toolbar Submit).
Application.ActiveWindow.Close(false)
 
F

foomonkey

I suppose this question is too difficult to answer? Or is everyone just
on vacation or something?
 

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