欢迎来到福编程网,本站提供各种互联网专业知识!

Add a Picture to a Microsoft Word Document

发布时间:2007-06-15 作者: 来源:转载
Demonstrationscriptthataddsapicture(C:\Scripts\Logo.jog)toaMicrosoftWorddocument复制代码代码如下:SetobjWord=CreateObject("Word.Application")objWord.Visible=TrueSetobjDoc=objWord.Documents.Add()SetobjSelection=objWord.SelectionSetobjShap
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")

相关推荐