Add a Picture to a Microsoft Word Document_javascript技巧
程序员文章站
2022-06-10 23:07:30
...
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")
上一篇: php论坛代码疑惑,关乎我是否继续编程的大事!各位帮帮忙
下一篇: 账号绑定IP的实现方法
推荐阅读
-
Add a Picture to a Microsoft Word Document_javascript技巧
-
Add a Picture to a Microsoft Word Document_javascript技巧
-
javascript中直接引用Microsoft的COM生成Word_javascript技巧
-
Add a Table to a Word Document_javascript技巧
-
Open and Print a Word Document_javascript技巧
-
Open and Print a Word Document_javascript技巧
-
Add Formatted Text to a Word Document_javascript技巧
-
Add a Table to a Word Document_javascript技巧
-
javascript中直接引用Microsoft的COM生成Word_javascript技巧
-
Add a Formatted Table to a Word Document_javascript技巧