Action  Property

Description         Starts a select, acquire or terminate actions. Not available at design time, write only at run time. Before setting action you have to call the ScanInit method.

Usage                  [form.]TWAIN.Action =  setting

Settings               The  Action property settings for a TWAIN control are:

 

Setting     Description                                                                                          

1               TWSCAN_SELECT. This action should be called to display the list of TWAIN driver sources.

2               TWSCAN_ACQUIRE. This action should be called to start scanning. The FileAcquire property will be used as the output file name. If the FileAcquire property is an empty string or starting with a space character, then the scanned image goes to memory. This action will generate a Done or an Error Event.

3               TWSCAN_TERMINATE. This action should be called to stop active scanning. This action will generate a Close Event

4               TWSCAN_ACQUIRETOCLIPBOARD This action should be called to start scanning to the clipboard. This action will generate a Done or an Error event.

5               TWSCAN_BATCHSCAN This action should be called to start software batch scanning. This action will generate Done or an Error event. You must set the FileAcquire property.

Data Type          Integer (Enumerated)

Available            ¨Design-Time      ¨Run-Time Read      þRun-Time Write

See Also              FileAcquire Property, FileOutput Property, Done Event, TwError Event