// Start Microsoft Word using Jscript
var
createDoc = function (msg) {
var MsWord = new ActiveXObject("Word.Application");
MsWord.Documents.Add();
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeText(
"line 1 text1: " + msg);
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeText(
"line2 text2: this is line two");
MsWord.Visible
= true;
};
var
createDoc = function (msg) {
var MsWord = new ActiveXObject("Word.Application");
MsWord.Documents.Add();
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeText(
"line 1 text1: " + msg);
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeParagraph();
MsWord.Selection.TypeText(
"line2 text2: this is line two");
MsWord.Visible
= true;
};
No comments:
Post a Comment