Closing InfoPath from managed code

J

jgmeyer

I'm trying to close InfoPath from managed code using Application.Quit(false),
but after doing so it will only allow me to open the form in read-only mode.
The form is published to a wss form library.
 
J

Josh Meyer

yes, i've tried that and it does the same thing. the first time i close it
this way it's ok, but if i open it again and then close it again using
either method, it brings up a message when it's opened the next time about
the form being read-only. i'm completely stumped!!
 
J

Josh Meyer

I still have not figured this out. It only happens when opening an existing
form, and only after closing the form from managed code. If I submit the
form in code and then close InfoPath manually, it doesn't happen. I have a
Biztalk orchestration monitoring the form library, and when this "File in
use..." error happens, it also causes Biztalk to hang. The solutions
proposed below are not really viable. I need to understand what's happening
here. I guess I could just get rid of the "Close" button on my form, and
make the user close InfoPath manually. That's just not very sexy. I've tried
closing the form every way possible, using window.close, application.quit,
etc. but they all give me the same results. Anyone have some insight into
this problem????

josh
 

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