TWAIN ActiveX/Plug-in Windows/Mac HTTP Control/SDK

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.

Support information

ActiveX Edition Plug-in Edition Mac Edition
Since V1.0 Since V1.0 Since V6.4

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.




TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2012 Dynamsoft Corporation. All Rights Reserved.