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 / TWAIN functions
  • Changing the default Twain device
  • Operating mode in the 64-bit applications
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Allows you to find out and change the Twain device used by default. This default device will be used by all the Twain functions.
Note: To find out which Twain devices are installed on the current extension, use the TwainListSource function.
Example
// Périphérique Twain utilisé par défaut ?
Trace("Le périphérique utilisé par défaut est : " + TwainCurrentSource())
// Changer le périphérique Twain utilisé par défaut
TwainCurrentSource("Logitech Camera")
Syntax

Changing the Twain device used by default Hide the details

<Result> = TwainCurrentSource(<Driver name>)
<Result>: Boolean
  • True if the specified device was taken into account,
  • False otherwise. The corresponding error message is returned by ErrorInfo.
<Driver name>: Character string
Name of the Twain device driver that must be used by default. This name must be one of the names returned by TwainListSource.

Finding out the Twain device used by default Hide the details

<Result> = TwainCurrentSource()
<Result>: Character string
Name of theTwain device driver used by default.
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: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help