Information générale
Catégorie:
Contrôles ActiveX en VFP
Hi,
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"
.startscan
.closescanner
else
wait window "Scanner is not available, check connections "
.closescanner
endif
endwith
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement