Add a Picture to a Microsoft Word Document
人气:0
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 objShape = objDoc.Shapes
objShape.AddPicture("C:\Scripts\Logo.jpg")
a Microsoft Word document
复制代码 代码如下:
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objShape = objDoc.Shapes
objShape.AddPicture("C:\Scripts\Logo.jpg")
加载全部内容