如何插入嵌入图片? [英] How to insert an embedded picture?

查看:116
本文介绍了如何插入嵌入图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

xlApp.activesheet.Pictures.Insert(strImagePath)将图片作为链接的图片插入到电子表格中。如果我将电子表格发送出我们的网络,则图像会失败。

xlApp.activesheet.Pictures.Insert(strImagePath) inserts pictures into a spreadsheet as a linked picture. If I send the spreadsheet out of our network the images fail.

如何将图像作为嵌入式图像放置?

How can I place an image as an embedded image?

我也在Access中调用此方法。

I am also calling this method from Access.

推荐答案

您可以使用shapes.addpicture方法

you can use the shapes.addpicture method

activesheet.Shapes.AddPicture Filename:="C:\test\desert.jpg", linktofile:=msoFalse, _
            savewithdocument:=msoCTrue, Left:=0, Top:=0, Width:=100, Height:=100

这篇关于如何插入嵌入图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆