Loads device settings from string.
Visual Basic |
---|
Public Function Device_SetSettings( _ ByVal value As Variant _ ) As Boolean |
Private VSTwain1 As New VintaSoftTwain() ''' <summary> ''' Returns the device settings as byte array. ''' </summary> Private Sub LoadDeviceSettingsAsByteArray(settings As Byte()) ' open the device manager If Not VSTwain1.DeviceManager_Open() Then Throw New ApplicationException(VSTwain1.errorString) End If ' open the device If Not VSTwain1.Device_Open Then Throw New ApplicationException(VSTwain1.errorString) End If ' set device settings If Not VSTwain1.Device_SetSettings(settings) Then Throw New ApplicationException(VSTwain1.errorString) End If End Sub