Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Startup Method
See Also 
Leadtools.Wia Namespace > WiaSession Class : Startup Method



version
The WIA version to be used. Possible values are:

Value

Meaning

WiaVersion.Version1 Use WIA version 1.0.
WiaVersion.Version2 Use WIA version 2.0.
version
The WIA version to be used. Possible values are:

Value

Meaning

WiaVersion.Version1 Use WIA version 1.0.
WiaVersion.Version2 Use WIA version 2.0.
Initializes the WIA session.

Syntax

Visual Basic (Declaration) 
Public Sub Startup( _
   ByVal version As WiaVersion _
) 
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim version As WiaVersion
 
instance.Startup(version)
C# 
public void Startup( 
   WiaVersion version
)
C++/CLI 
public:
void Startup( 
   WiaVersion version
) 

Parameters

version
The WIA version to be used. Possible values are:

Value

Meaning

WiaVersion.Version1 Use WIA version 1.0.
WiaVersion.Version2 Use WIA version 2.0.

Example

Remarks

This method should be called before calling any other method in LEADTOOLS WIA toolkit. Likewise, when the handle to the WIA session is no longer needed, it should be ended by calling Shutdown method. For every call to Startup there must be a call to Shutdown.

Call the WiaSession.IsAvailable method to determine whether a WIA source with the specified version is installed.

Note:

You do not need to call Startup if you are using the high-level WiaSession.AcquireSimple method, since it handles session initialization, session end, and device selection automatically.

For more information, refer to Initializing a WIA Session.

For more information, refer to Freeing the WIA Session.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also