Returns the current device settings as string.
Visual Basic |
---|
Public Function Device_GetSettings() As Variant |
Private VSTwain1 As New VintaSoftTwain() ''' <summary> ''' Returns the device settings as byte array. ''' </summary> Private Function GetDeviceSettingsAsByteArray() 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 ' get device settings as byte array Dim settings As Byte() = CType(VSTwain1.Device_GetSettings(), Byte()) Return settings End Function