I am having endless problems with getting a .net website to interact with the Word Interop Assembles, everything is setup, and all i am having trouble with at the moment is the Documents.Open() method.
the current error is
"System.Runtime.InteropServices.COMException (0x800A1499): The document name or path is not valid"
but the path is definately valid.
has anyone experienced this problem ? have any ideas ?
Greg
im calling the library like this;
using System.Runtime.InteropServices;
using Word = Microsoft.Office.Interop.Word;
and the function that calls it is like this;
public string openFile(string filename){
try{
object fileName = " object readOnly = false;
object isVisible = true;
object missingValue = Type.Missing;
this.doc = this.word1.Documents.Open(ref fileName, ref missingValue, ref missingValue, ref isVisible, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue,ref missingValue);
this.doc.Activate();
return("true");
}catch(Exception e){
return(e.ToString());
}
}
the current error is
"System.Runtime.InteropServices.COMException (0x800A1499): The document name or path is not valid"
but the path is definately valid.
has anyone experienced this problem ? have any ideas ?
Greg
im calling the library like this;
using System.Runtime.InteropServices;
using Word = Microsoft.Office.Interop.Word;
and the function that calls it is like this;
public string openFile(string filename){
try{
object fileName = " object readOnly = false;
object isVisible = true;
object missingValue = Type.Missing;
this.doc = this.word1.Documents.Open(ref fileName, ref missingValue, ref missingValue, ref isVisible, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue,ref missingValue);
this.doc.Activate();
return("true");
}catch(Exception e){
return(e.ToString());
}
}