Add a Picture to a Microsoft Word Document
发布时间:2016-12-30 来源:查字典编辑
摘要:Demonstrationscriptthataddsapicture(C:ScriptsLogo.jog)toaMicrosoftWord...
Demonstrationscriptthataddsapicture(C:ScriptsLogo.jog)to
aMicrosoftWorddocument
复制代码 代码如下:
SetobjWord=CreateObject("Word.Application")
objWord.Visible=True
SetobjDoc=objWord.Documents.Add()
SetobjSelection=objWord.Selection
SetobjShape=objDoc.Shapes
objShape.AddPicture("C:ScriptsLogo.jpg")