Help / WLanguage / WLanguage functions / Standard functions / Windows management functions / Scanner functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Saves a document from a scanner to one or more files, using the scanner's user interface.
MyScanner is Scanner
// Scanner with user interface
arrFile is array of string = ScanWithUserInterface(MyScanner)
// Display paths of scanned files
FOR EACH FileName OF arrFile
<Result> = ScanWithUserInterface(<Scanner> [, <File path>] [, <Options>])
<Result>: Array
Array of strings containing the paths of the scanned files.
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 details of the scanner used. Only the name of the scanner will be taken into account. The other scanner parameters will be determined by the options chosen by the user in the scanner's UI.
<File path>: Optional character string
Name and full (or relative) path of file (up to 260 characters). The file extension will be ignored since it will depend on the type of file chosen by the user. A UNC path can be used.
The name of each scanned file will be indexed so as not to overwrite an existing file.
If this path is not specified, the files will be generated in the current directory with "scan" as a prefix (for example, if the user has selected the bmp format, a "scan.gif" file will be generated).
<Options>: Combination of optional Integer constants
Scan options with the user interface:
(Default value)
Uses the default options.
scanUIOptionSingleImageRestricts the user interface to scan one single file.
Remark: Some scanners do not support this option.
scanUIOptionSystemDisplays the system user interface, if available, instead of the scanner-specific user interface.
Component: wd280std.dll
Minimum version required
  • Version 27
This page is also available for…
Click [Add] to post a comment

Last update: 07/12/2022

Send a report | Local help