欢迎来到福编程网,本站提供各种互联网专业知识!

Open and Print a Word Document

发布时间:2007-06-15 作者: 来源:转载
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

相关推荐