WINWORD.EXE not ends in word 2007 when Embedding word document in OLE UNBOUND CONTROL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JAMBAI
    New Member
    • Feb 2007
    • 28

    WINWORD.EXE not ends in word 2007 when Embedding word document in OLE UNBOUND CONTROL

    Hi,

    I am using a OLE unbound Control to Embed the word document in the form load, event like this
    http://support.microso ft.com/kb/209990

    and When i double clicks (In Place activation), the documents gets activated (A WINWORD.EXE process is opened) and i can edit the document and in the button click event i am saving the document like this :

    http://support.microso ft.com/kb/132003

    and I could save the document.

    But the WINWORD.EXE process is not closed and keeps running only in Word 2007. So when i run the same form next time, i couldn't access the template file and it says already opened. Please help me...

    Thanks
    Harish
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    You need to quit the application. Something like ..

    Me![OLEWordDoc].Quit

    Not sure if that syntax will work but you get the idea.

    Comment

    Working...