Open and Print a Word Document

2016-02-19 09:26 2 1 收藏

下面是个Open and Print a Word Document教程,撑握了其技术要点,学起来就简单多了。赶紧跟着图老师小编一起来看看吧!

【 tulaoshi.com - Web开发 】

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

来源:https://www.tulaoshi.com/n/20160219/1590774.html

延伸阅读
CAnimateCtrl::Open的使用问题 VCKBASE 提出问题: 使用CAnimateCtrl::Open( LPCTSTR lpszFileName )时,参数lpszFileName 是个字符串,表示AVI文件名。因此在分发应用程序时,除了分发可执行程序外,还必须单独分发AVI文件。是否有办法从资源中得到AVI文件? ...
标签: Web开发
Demonstration script that displays a File Open dialog box (open to the folder C:\Scripts), and then echoes back the name of the selected file.  Supported Platforms Windows Server 2003...
标签: Web开发
Cascading Style Sheets: The Definitive Guide, 2nd Edition is a thorough review of all aspects of CSS2.1 and a comprehensive guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user interface, paged media, and more. It explores in detail each individ...

经验教程

87

收藏

22
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部