|
-
Feb 17th, 2000, 07:49 PM
#1
Thread Starter
New Member
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?
-
Feb 17th, 2000, 11:14 PM
#2
New Member
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).
-
Feb 18th, 2000, 08:14 AM
#3
www.dhs.com
imageBASIC pixelScanning
Great Product, very reliable.
-
Feb 19th, 2000, 10:14 PM
#4
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|