-
I want to scan some photos and the same has to be displayed to the user and has to be stored in an access database thro' a vb program.
I tried thro Wangsamp Scan Control, the control invokes the scanning process correctly but unable to complete the scanning process. After reaching 3 or 4% the application hangs.
can anyone give some good suggestions?
-
I don't know if you want to use your VB app to scan the image or not, but if you use another application to scan, you can store the path to the image in the access database and then view the image with your VB app with this code:
Private Sub Command1_Click()
my_sql = "Select photo from photographs WHERE name LIKE '" + Combo1.Text + "' AND place LIKE '" + Combo2.Text + "' AND date LIKE '" + Combo3.Text + "'"
Data1.RecordSource = my_sql
Data1.Refresh
End Sub
Private Sub Text1_Change()
Image1.Picture = LoadPicture(Text1.Text)
End Sub
set the TEXT1 data source property to the name of your data source ("data1" in example) and the data field property to the name of the field containing the path to your image ("photo" in the example). The loadpicture function will load the image into any image box that you choose ("Image1" in the example).
-
www.dhs.com
imageBASIC pixelScanning
Great Product, very reliable.
-