vetrivel
23rd October 09, 09:13 AM
In MS Word there will be a Option
Insert --> Object --> Create From File
to attach the Existing Document in MS Word
I need this process to be done with JavaScript
I have Opened the MS Word using the Following Code
var word = new ActiveXObject('Word.Application');
var docText,obj;
if (word != null)
{
word.Visible = false;
obj=word.Documents.Open("D:\\Folder Name\\FileName.doc");
docText = obj.Content;
var Document=word.ActiveDocument;
word.Documents.Save();
word.Quit();
}
I dont know or didnot get Idea how to do it
This Process is Done is Local System only not in any server
Thanks in Advance
Insert --> Object --> Create From File
to attach the Existing Document in MS Word
I need this process to be done with JavaScript
I have Opened the MS Word using the Following Code
var word = new ActiveXObject('Word.Application');
var docText,obj;
if (word != null)
{
word.Visible = false;
obj=word.Documents.Open("D:\\Folder Name\\FileName.doc");
docText = obj.Content;
var Document=word.ActiveDocument;
word.Documents.Save();
word.Quit();
}
I dont know or didnot get Idea how to do it
This Process is Done is Local System only not in any server
Thanks in Advance