ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Scanner functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Used to determine if a scanner has a given capability.
Example
MyScanner is Scanner
 
// Indicates whether the scanner supports duplex scanning
Duplex is boolean = ScanCapability(MyScanner, scanCapabilityDuplex)
Syntax
<Result> = ScanCapability(<Scanner> , <Capacity>)
<Result>: Boolean
  • True if the scanner has the given <Capability>,
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the corresponding error message.
<Scanner>: Scanner variable
Name of the Scanner variable initialized with the information of the scanner for which we want to get the capability.
<Capacity>: Integer constant
Information required about the scanner's capability:
scanCapabilityDuplexDetermines if the scanner supports duplex scanning.
scanCapabilityFeederDetermines if the scanner has a feeder.
scanCapabilityFlatbedDetermines if the scanner has a flatbed.
Remarks
You can also get the capabilities of a scanner with ScanProperty. This function returns a combination of constants that correspond to the capabilities of the scanner. ScanCapability simplifies the code used to indicate whether the scanner has a given capability.
Component: wd300std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/12/2022

Send a report | Local help