V
VP
Hi,
I am trying to open an existing word document, the execution happens
with no error but Word does not come up and my document does not open.
This is the code I am using..
Microsoft.Office.Interop.Word.ApplicationClass WordApp = new
Microsoft.Office.Interop.Word.ApplicationClass();
object missingValue = System.Reflection.Missing.Value;
object fileName = "C:\\test.doc" ;
object isVisible = true;
WordApp.Visible = true;
Microsoft.Office.Interop.Word.Document aDoc =
WordApp.Documents.Open(ref fileName, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref isVisible, ref missingValue, ref missingValue,
ref missingValue, ref missingValue);
WordApp.Visible = true;
aDoc.Activate();
Can anyone help me with this ?
thanks
V
I am trying to open an existing word document, the execution happens
with no error but Word does not come up and my document does not open.
This is the code I am using..
Microsoft.Office.Interop.Word.ApplicationClass WordApp = new
Microsoft.Office.Interop.Word.ApplicationClass();
object missingValue = System.Reflection.Missing.Value;
object fileName = "C:\\test.doc" ;
object isVisible = true;
WordApp.Visible = true;
Microsoft.Office.Interop.Word.Document aDoc =
WordApp.Documents.Open(ref fileName, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref isVisible, ref missingValue, ref missingValue,
ref missingValue, ref missingValue);
WordApp.Visible = true;
aDoc.Activate();
Can anyone help me with this ?
thanks
V