将图片插入表格 [英] Inserting a picture to table

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

问题描述

你好;

在程序中,具有一个OLE对象类型列的访问表.该列用于存储图片.我想知道如何在运行时使用INSERT INTO SQL命令向表中添加一些行.如果没有"OLE对象类型"列,则下面的代码可以轻松地向表中插入新行.我还尝试过将图片的路径传递到表格,但是表格无法识别它(无法从Access Software内部打开或显示图片).

您能告诉我如何将图片插入桌子吗?

非常感谢

Hello;

In a program there is an Access Table with a column of OLE Object type. The column is used to store picture. I''d like to know how I could add some rows to the table using INSERT INTO SQL command at runtime. If there were no OLE Object type column, the code below could easily insert a new row to the table. I also tried passing the path of picture to the table but the table could not recognize it (the picture could not be opened or shown from inside Access Software).

Could you please let me know how I could insert a picture to the table?

Thanks a lot

string Sql_Command = "INSERT INTO MyTable ( Name , Age ) VALUES (''Mehdi'', 20)";

推荐答案


请参考以下链接:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=129&AspxAutoDetectCookieSupport=1


谢谢,
Imdadhusen
Hi,
Please refer following link:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=129&AspxAutoDetectCookieSupport=1


Thanks,
Imdadhusen


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

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