从c#插入excel中的图像链接 [英] insert image link in excel from c#

查看:92
本文介绍了从c#插入excel中的图像链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用相对路径从目录中插入Excel工作表中的图像链接。



i有一个文件夹(比如xyz)包含一个图像文件夹(比如图像)和单个excel表。

现在我想使用相对路径将图像文件夹中的图像链接添加到excel表格。



表示如果我将文件夹(xyz)复制到其他目录,然后它不会影响excel表格来改变路径。



对不起英语不好

谢谢

I want to insert a image link in excel sheet from the directory using relative path.

i have one folder (say xyz) contains one image folder (say image) and single excel sheet.
now i want to add image link from image folder to excel sheet using relative path.

that means if i copied folder (xyz) to other directory, then it does not affect excel sheet to change the path.

Sorry for poor English
Thanks

推荐答案



通过这个 -



使用OLEDB读取和编写Excel [ ^ ]



使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]


http://stackoverflow.com/questions/1333772/adding-hyperlinks-in-excel2007 -in-c-sharp-in-excel-it-self [ ^ ]


这篇关于从c#插入excel中的图像链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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