VintaSoft Twain .NET SDK v10.2
Open Method (DeviceManager)




Vintasoft.WpfTwain Namespace > DeviceManager Class : Open Method
Opens the TWAIN device manager.
Syntax
'Declaration
 
Public Sub Open() 
'Usage
 
Dim instance As DeviceManager
 
instance.Open()
public void Open()
public: void Open(); 
public:
void Open(); 
Exceptions
ExceptionDescription
Thrown if
  • TWAIN device manager is not found - TWAIN_32.DLL or TWAINDSM.DLL file is not found
  • TWAIN device manager is not loaded - TWAIN_32.DLL cannot be loaded in 64-bit system, recompile the project in x86 mode
  • TWAIN device manager is not initialized
  • parent window is not found - run Open method in the Loaded handler of the form
Thrown if object is disposed.
Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
Remarks
Only ApplicationProductName property can be used before this method. All other properties and methods must be used only after execution of this method.
Example
Please see example here.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

DeviceManager Class
DeviceManager Members
Close Method