本示例为活动文档添加一幅图片,该图片链接到原始文件并与文档一起保存。

ActiveDocument.InlineShapes.AddPicture fileName:="C:\Test.bmp", LinkToFile:=True, SaveWithDocument:=True