DemonstrationscriptthatopensandprintsandexistingMicrosoftWorddocument.复制代码代码如下:SetobjWord=CreateObject("Word.Application")SetobjDoc=objWord.Documents.Open("c:cripts\inventory.doc")objDoc.PrintOut()objWord.Quit
DemonstrationscriptthatopensandprintsandexistingMicrosoftWorddocument.
复制代码 代码如下:
SetobjWord=CreateObject("Word.Application")
SetobjDoc=objWord.Documents.Open("c:scriptsinventory.doc")
objDoc.PrintOut()
objWord.Quit