Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scanner Problems
Message
 
 
To
10/07/2001 05:22:13
Alec Dearden
Peterborough Hospitals Nhs Trust
Peterborough, United Kingdom
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00528510
Message ID:
00529081
Views:
15
Alec,

All you should have to do is set the .Image property to the filename along with the proper extension (JPG or TIF) and the control will work fine.

>I am using the WANG scanner control in a VFP 6.0 form. The scanner is working OK and scanning and saving the document. However, it seems to be ignoring the commands I am sending to specify the format of the file.
>I think it is using the settings that were last used on the scanner.
>
>My code is as follows, can anybody tell me if I am doing something wrong ..
>
>with thisform.oleScanner
> if .scanneravailable and .openscanner>-1
> .scanto=2 && File only
> .multipage=.t.
> .FileType=1 && TIFF File
> .PageType=1 && Black & White
> .compressiontype=2 && fax
> .compressioninfo=16
> .pageoption=1 && create new and append
> .page=1
> .image=scanfolder+"xxx.jpg"
> .startscan
> .closescanner
> else
> wait window "Scanner is not available, check connections "
> .closescanner
> endif
>endwith
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform