VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / DeviceManager Class / Open() Method
Syntax Exceptions Remarks Example Requirements SeeAlso
In This Topic
    Open() Method (DeviceManager)
    In This Topic
    Opens the TWAIN device manager.
    Syntax
    'Declaration
    
    Public Sub Open()
    
    
    public void Open()
    
    
    public: void Open()
    
    
    public:
    void Open()
    Exceptions
    ExceptionDescription
    Thrown if
    • TWAIN device manager is not found - TWAIN_32.DLL, TWAINDSM.DLL or libtwaindsm.so 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 TWAIN device manager is disposed.
    Thrown if .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: DeviceManager.

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also