Home  >  Article  >  Web Front-end  >  Open and Print a Word Document_javascript技巧

Open and Print a Word Document_javascript技巧

WBOY
WBOYOriginal
2016-05-16 19:12:281013browse

Demonstration script that opens and prints and existing Microsoft Word document. 

复制代码 代码如下:

Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("c:scriptsinventory.doc")

objDoc.PrintOut()
objWord.Quit

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn