Add a Picture to a Microsoft Word Document

2018-09-22 01:03

阅读:575

  Demonstrationscriptthataddsapicture(C:\Scripts\Logo.jog)to
aMicrosoftWorddocument
复制代码 代码如下:
SetobjWord=CreateObject(Word.Application)
objWord.Visible=True
SetobjDoc=objWord.Documents.Add()
SetobjSelection=objWord.Selection

SetobjShape=objDoc.Shapes
objShape.AddPicture(C:\Scripts\Logo.jpg)


评论


亲,登录后才可以留言!