Help / WLanguage / WLanguage functions / Standard functions / Windows management functions / Scanner functions
  • Overview
  • Principle
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Windows Image Acquisition (WIA) is a Windows device driver interface and API that allows applications to scan documents using a scanner. This standard is increasingly replacing the Twain standard.
WINDEV includes functions to scan documents using WIA-compatible scanners.
Scanner functions allow you to:
  • scan the document programmatically.
  • start the interface of the scanner (or the corresponding system interface). This interface allows you to save the document, change the default settings of the device, etc, ... The available actions depend on the device used.
Remark: WIA 2 is supported.
Here is how it works:
  1. Define a variable of type Scanner. This variable contains the characteristics of the scanner used.
  2. Retrieve the characteristics of the scanner via the following functions:
    ScanGetRetrieves the characteristics of a scanner in a variable of type Scanner.
    ScanListLists the scanners connected to the current computer.
    ScanSelectOpens a standard dialog box with the available scanners.
  3. Scan the document using the following functions:
    ScanToImageRetrieves a document from a scanner in a variable of type Image.
    ScanToPDFSaves a document from a scanner to a PDF file.
    ScanWithUserInterfaceSaves a document from a scanner to one or more files, using the scanner's user interface.
  • The Scanner type is available in read and write mode. This makes it possible to change one or more parameters between two scans. scanxxxDefault constants are used to store the last value specified for the different properties.
  • ScanProperty is used to get and change the different properties of the scanner managed by the driver (Windows API properties).
Minimum version required
  • Version 27
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help