Closing InfoPath application with code

P

Patrick Temple

I'm trying to close out the InfoPath application completely after certain
tasks are down.

Example: A user deletes a record.

I can't use the "close" rule because I have code behind the button that runs
after the rules. I tried using Application.XDocuments.close(XDocument);
This closes the form but leaves the application running, so it brings up the
design a form stuff. I want to completely close InfoPath with Jscript Code.

Any Ideas?

Thank you

--Patrick
 
F

Franck Dauché

Hi Patrick,

Have you tried: Application.ActiveWindow.Close(true);

Franck Dauché
 

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