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
时间: 2024-11-05 22:46:45