locked
Microsoft.Office.Interop.Word.Document object displays null RRS feed

  • Question

  • User-248674242 posted

    I am trying to open a word document and edit it. But while opening the document i shows like there is not value assigned to doc object. doc object is showing as null. Can anyone help me with this?

    Below is my code.

    object missing = System.Reflection.Missing.Value;

    Microsoft.Office.Interop.Word.Document doc = appWord.Documents.Open(ref filename,

    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, ref missing, ref missing);

    Monday, June 11, 2012 9:02 AM

All replies