ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / TWAIN functions
  • Changing the default Twain device:
  • Operating mode in the 64-bit applications
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
Displays a standard dialog box used to list the different Twain devices available on the current computer. The user will have the ability to choose the Twain device used by default. This device will be used by all the following Twain functions.
Notes:
  • TwainCurrentSource allows you to find out the Twain device used by default by the Twain functions.
  • In 64 bits, only the devices that include a 64-bit driver are listed.
Example
// Displays a standard dialog box used to list the different
// Twain devices available on the current computer
IF TwainSelectSource() = False THEN
Error("The user did not choose any Twain device")
END
Syntax
<Result> = TwainSelectSource()
<Result>: Boolean
  • True if a Twain device was selected by the user,
  • False otherwise. The corresponding error message is returned by ErrorInfo.
Remarks

Changing the default Twain device:

To change the Twain device used by default, you can:
  • use the TwainCurrentSource function.
  • display the list of Twain devices installed on the computer via TwainSelectSource. Then, the user will be able to choose the Twain device that will be used by default.

Operating mode in the 64-bit applications

In a 64-bit application, this function will automatically use the 64-bit Twain driver. The TWAIN cannot be used if this driver is not installed.
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help