Loads the specified Source into main memory and starts its initialization, placing Dynamic .NET TWAIN into Capability Negotiation state. If no source is specified (no SelectSource() or SelectSourceByIndex() is called), opens the default source.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool OpenSource()
Visual Basic
Public Function OpenSource As Boolean

Return Value

True indicates success. False indicates failure.

Remarks

OpenSource() should be called prior to negotiating capability. If no source selection function is called before OpenSource(), OpenSource() opens the default source. The capability is available after OpenSource is called.

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also