M
Maheshsinh
I want to merge two word document in one document using c#.
I am getting a error as 'Command Failed', when i call the Merge function of
the word document object.
This Merge function expects path of a document which need to merge.
Following is the code i am using....
Word.Application _wordApplication = new Word.ApplicationClass();
Word.Document _aDoc = new Word.DocumentClass();
_wordApplication.Documents.Add(ref _template, ref _falseValue, ref _docType,
ref _visible1);
_aDoc = _wordApplication.Documents.Item(ref obj);
_aDoc .Activate();
_aDoc.Merge(@"C:\doc2.doc"); // I am getting error at this line as 'Command
Failed'
Thanks & Regards
Maheshsinh
I am getting a error as 'Command Failed', when i call the Merge function of
the word document object.
This Merge function expects path of a document which need to merge.
Following is the code i am using....
Word.Application _wordApplication = new Word.ApplicationClass();
Word.Document _aDoc = new Word.DocumentClass();
_wordApplication.Documents.Add(ref _template, ref _falseValue, ref _docType,
ref _visible1);
_aDoc = _wordApplication.Documents.Item(ref obj);
_aDoc .Activate();
_aDoc.Merge(@"C:\doc2.doc"); // I am getting error at this line as 'Command
Failed'
Thanks & Regards
Maheshsinh