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 [ 查看全文 ]
Demonstration script that retrieves service information from a computer and then displays that information in tabular format in Microsoft Word. 代码如下: Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = obj...[ 查看全文 ]
Demonstration script that retrieves service data from a computer and then displays that data in a formatted table in Microsoft Word. 代码如下: Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = ob...[ 查看全文 ]
Demonstration script that displays formatted data in a Microsoft Word document. 代码如下: Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add() Set objSelection = objWord.Selection objSelection.Font.Name ...[ 查看全文 ]
Demonstration script that adds a picture (C:\Scripts\Logo.jog) to a Microsoft Word document 代码如下: Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add() Set objSelection = objWord.Selection Set objShap...[ 查看全文 ]