Accusoft TwainPRO 8
CloseSession Method
See Also  Send comments on this topic.
AccusoftTwainPro8 ActiveX DLL > TwainPro Object : CloseSession Method

Glossary Item Box

Description

Disables and closes the current data source and Data Source Manager.

Syntax

Visual Basic
Public Sub CloseSession() 

Remarks

For every OpenSession or OpenDSM  (Data Source Manager) method call, you need to close the TwainPRO session with CloseSession. This method cancels any pending image transfers, if the data source was in the image transfer state. The StartSession method calls CloseSession internally before returning if the CloseSessionAfterAcquisition property is set to true (which is the default value). In this case, it is not necessary to call CloseSession after StartSession. If the CloseSessionAfterAcquisition property is set to false, then the session will remain open and return to the Capability Negotiation state after StartSession.

See Also

©2013. Accusoft Corporation. All Rights Reserved.