OpenandPrintaWordDocument_javascript技巧
时间:2021-07-01 10:21:17
帮助过:15人阅读
Demonstration script that opens and prints and existing Microsoft Word document.
代码如下:
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("c:\scripts\inventory.doc")
objDoc.PrintOut()
objWord.Quit