Image scanning

colins5286

New member
Local time
Today, 13:57
Joined
Feb 13, 2007
Messages
9
I have a customer database and would like to link files to each record. I can do this using hyperlinks. My aim though is to open the record and click a button, this would then capture an image from my scanner, save it to a pre-defined location and log update the attachments field.

I have been looking into the Windows Image Aquisition functions but cant seem to get them working yet.

Code:
Dim commondialog1 As Object
Dim img As ImageFile
Set commondialog1 = CreateObject("wia.commondialog")
Set img = commondialog1.ShowAcquireImage
img.SaveFile ("c:\test.jpg")

Using this I get an error saying no WIA device of this type is available.
 
I don't know much about the WIA function, but i did read a little into this

http://msdn.microsoft.com/en-us/library/ms630826#SharedSample001

There is a part where they process images.. which i guess is all well and good but in another part they have a "Take Picture" example. I believe this is for a camera, but i think you would be able to alter the settings to use a scanner instead.

it might be worth a look
 

Users who are viewing this thread

Back
Top Bottom