Home > Web Front-end > JS Tutorial > Add a Picture to a Microsoft Word Document_javascript技巧

Add a Picture to a Microsoft Word Document_javascript技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 19:12:36
Original
1194 people have browsed it

Demonstration script that adds a picture (C:ScriptsLogo.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:ScriptsLogo.jpg")

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Add photos together in Add in the Data controller
From 1970-01-01 08:00:00
0
0
0
Can't add information
From 1970-01-01 08:00:00
0
0
0
add failed
From 1970-01-01 08:00:00
0
0
0
Why add True ?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template