Apr 202004
 

Yesterday I was working on an application (not WRap) that works with RTF documents. I load them into a RichViewEdit, and the user has the ability to do basic editing. To enable full-scale editing, I thought it would be nice to have a button that started Word with the appropriate document. So far so good.

Word opens, the document is loaded, document can be amended, saved, whatever. Exit Word. Oh my, I have to reload the document into my RichViewEdit. Easy. But…hey…wait a second. How do I know if the user is done editing in Word?

[Google searching heard in the background]

I found this page that basically has the answer. And indeed, basically it works. The program starts Word with the correct document, and if I close it, I’m back in my application. But…whenever I change the document and close Word (Do you wish to save…blablabla) something goes wrong. Word does not close, and I have to close it via CTRL-ALT-DEL. I can’t figure out what goes wrong, since the flow works whenever I don’t change the document. What’s the difference?

 Posted by at 10:16

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)