Aug 04, 2008 15:19
var word;
try
{
word = WScript.CreateObject("Word.Application");
}
catch(e)
{
WScript.Echo("You must have Microsoft Word installed to perform this operation.");
WScript.Quit(1);
}
//word.visible = true;
word.Documents.Add();
word.ActiveDocument.PrintOut();
word.ActiveDocument.Close();
word.Quit();