ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Scanner functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Saves a document from a scanner to one or more files, using the scanner's user interface.
Example
MonScanneur is Scanner

// Scan avec interface utilisateur
tabFichier is array of strings = ScanWithUserInterface(MonScanneur)
// Affichage des chemins des fichiers scannés 
FOR EACH NomFichier OF tabFichier
	Trace(NomFichier)
END
Syntax
<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 the 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:
scanUIOptionDefault
(Default value)
Uses the default options.
scanUIOptionSingleImageRestricts the user interface to scan one single file.
Note: Some scanners do not support this option.
scanUIOptionSystemDisplays the system user interface, if available, instead of the scanner-specific user interface.
Business / UI classification: UI Code
Component: wd300std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help