Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scanning using Kodak Image Controls - SetScanCapability

Status
Not open for further replies.

NightZEN

Programmer
Apr 29, 2003
142
US
After sloshing through many posts regarding scanning in Access, I have the code below. I want to scan from a button on a form, and have the image save to a file - Can DO! What I am working on now is setting the scanner options using the SetScanCapability method as described here:
When I run this code I get this:

Run-time Error '438':
Object doesn't support this property or method.

Why not? Any ideas welcome! Thanks.

Private Sub Command0_Click()


ImgScan1.ScanTo = UseFileTemplateOnly '4
'Set the image property to a template name.
ImgScan1.Image = "C:\Scans\img"
'SetFile type to TIFF
ImgScan1.FileType = 1
'MultiPage property must be set to true in order to create
'files with more than one page.
ImgScan1.MultiPage = True
'Do not show the scanner's TWAIN UI.
ImgScan1.ShowSetupBeforeScan = False
'Open Scanner
ImgScan1.OpenScanner
'Set Scanner Options to B/W-300dpi
ImgScan1.SetScanCapability 100, 1 'Black and White
ImgScan1.SetScanCapability 101, 300 '300 dpi in X, Y will be semetrical
ImgScan1.SetScanCapability 107, 2 'auto-doc feeder
'Scan without using dialog box.
ImgScan1.StartScan
'Close scanner, release driver
ImgScan1.CloseScanner

End Sub
 
Please help me with this if you can! Here is some additional Information:

I am using:
Access 2002
Windows 2000 Pro

The code stops at the line :
ImgScan1.SetScanCapability 100, 1 'Black and White

The object browser does not include the SetScanCapability method!! Why not when it is described on MSDN here:
Please Help!
Thanks! [hairpull3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top