Dynamsoft Home|Product Home

OpenSource Method

Description

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

Syntax

Boolean ObjectName. OpenSource()

Parameters

None.

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

OpenSource() should be called prior to negotiating capability.

If no source selection function is called before OpenSource(), OpenSource() opens the default source.

See also

CloseSource(), OpenSourceManager(), SelectSource(), SelectSourceByIndex(), How to Negotiate Capability with Different Capability Container Types.