Add a Picture to a Microsoft Word Document_javascript技巧
程序员文章站
2022-06-07 22:31:10
...
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")
推荐阅读
-
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技巧