none
Word Instance not removed (64 BIT Word) C# RRS feed

  • Question

  • Dear team

       I am reading word document using C# and word automation when i call wordApplication.Quit() method word instance is gets closed properly (when 32 bit Office is used) but for same code word instance is not closed (remains in task manager) if i used 64 bit Office.

    How to resolve it ? Please suggest

    Thanks

    Prasad

    Thursday, August 30, 2018 11:16 AM

All replies

  • Hi koolprasadd,

    I’ve tested on my machine, both 32-bits and 64-bits Word can be closed(Include task manager), and my version of Word screenshots and test code are as follows:



    Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
    app.Visible = true;         
    app.Documents.Open("C:\\test.docx");
    app.Documents.Save();
    app.Quit();
    Could you please provide detail code for us? 


    Thanks,

    Bruce



    Friday, August 31, 2018 7:47 AM
    Moderator