ImageGear .NET
OpenSource Method




Specifies the data source.

If sourceName is String.Empty and UseUI is set to true, then a call to this method will cause Data Source Manager to display the default source selection dialog.

If sourceName is String.Empty and UseUI is set to false, then the default Data Source will be opened.

If sourceName is a name of an existing Data Source, the specified Data Source will be opened.

This method opens a connection to the TWAIN Data Source Manager and then loads the specified Data Source into main memory and causes its initialization.
Syntax
'Declaration
 
Public Sub OpenSource( _
   ByVal sourceName As String _
) 
'Usage
 
Dim instance As ImGearTWAIN
Dim sourceName As String
 
instance.OpenSource(sourceName)
public void OpenSource( 
   string sourceName
)
public: void OpenSource( 
   string* sourceName
) 
public:
void OpenSource( 
   String^ sourceName
) 

Parameters

sourceName

Specifies the data source.

If sourceName is String.Empty and UseUI is set to true, then a call to this method will cause Data Source Manager to display the default source selection dialog.

If sourceName is String.Empty and UseUI is set to false, then the default Data Source will be opened.

If sourceName is a name of an existing Data Source, the specified Data Source will be opened.

Remarks
When an application is finished with the Data Source, call CloseSource to close the session between them.
See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback