Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted
Comments
Kschuler 17-Nov-11 14:24pm    
Your question is too general. Which part of the process are you having trouble with? What code do you have so far and why isn't it working?
aakira_69 18-Nov-11 0:09am    
i'm new to C#, and wanted to create a paperless desktop software... the scanning is running and storing the information on the database is running as well, i want to also add the link of the scanned image to the database as well,(so that in the datagrid view there is a hyperlinked text, when clicked would open the set image), i tried BLOBing it (that works), but i want to just add the link of the file...

i just want to know the general way of how to make a hyperlink of the file(image) and insert it to the database... thanks...

1 solution

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

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


and use picturebox control to show image

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


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

sample:
C#
System.Diagnostics.Process.Start("mspaint.exe", "\"" + FilepathString + "\"");
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900