locked
WordApplication Documents.Open returns null in any case. Does anyone know how to resolve this problem? RRS feed

  • Question

  • Hello!

    I have ASP.NET application on 32bit OS system (Vista). My server side code (see below) is trying to open some docx document.

                    wordApp = new Microsoft.Office.Interop.Word.Application();
                    wordApp.Visible = false;
                    wordDocument = wordApp.Documents.Open(ref filePath, ref missing, ref trueValue, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
                    lock (this)
                    {
                           // some actions with wordDocument 
                    }

    I want to perform some actions with wordDocument after it was opened, but wordApp.Documents.Open always returns null.

    I have found some articles and discassions about this problem, but there are no thinks that may resolve this issue for me. I granted admin's permissions for all processes, but problem was not resoved.

    Does anyone know how to resolve this problem?

    Kind Regards,
    Petr Lyapin (Web consultant)
    Web-site: http://www.petrlyapin.ru

    • Edited by Petr Lyapin Monday, September 6, 2010 10:58 AM
    Friday, May 8, 2009 11:45 AM

Answers

All replies