创建超链接并将其插入到Access数据库中 [英] creating and inserting hyperlink into access database

查看:159
本文介绍了创建超链接并将其插入到Access数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我吗?我正在尝试创建正在图片框中显示的图像的超链接,该图像仅来自扫描仪并存储在C驱动器中...我想创建超链接并将那个超链接插入到Access数据库表的超链接"列中...

有人可以帮我吗?

我不想将整个图像存储在数据库中,只想存储超链接...

Can anyone help me i''m trying to create a hyperlink of an image being displaying in the picture box, that just came from a scanner and is being stored in the C drive... i want to create the hyperlink and insert that hyperlink into an Access Database table''s Hyperlink Column...

can anyone help me???

i don''t want to store the entire image in the database, just want to store the hyperlink...

推荐答案

我的解决方案是:
将图像的文件路径字符串存储在文本列"中.就像``C:\ Scans \ image1.jpg''
并以胜利的形式使用

My Solution Is:
store file path string of image in text Column. like ''C:\Scans\image1.jpg''
and in win form use

System.Drawing.Image img = System.Drawing.Image.FromFile(FilepathString);



并使用图片框控件显示图像



and use picturebox control to show image

PictureBox p = new PictureBox();
p.Image = img; 



如果要在外部应用程序中显示图像,请使用Process Class和
将FilepathString作为应用程序的参数传递

样本:



if you want to show image in external application use Process Class and
pass the FilepathString as Argument of Application

sample:

System.Diagnostics.Process.Start("mspaint.exe", "\"" + FilepathString + "\"");


这篇关于创建超链接并将其插入到Access数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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