SaveSettings()

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
snksoft
Posts: 2
Joined: Sat Feb 11, 2012 4:55 pm

SaveSettings()

Post by snksoft »

Hi,

My application queries

Code: Select all

_device.Capabilities.Find(DeviceCapabilityId.CustomDsData)
. If device has this feature, application continue with this code,

Code: Select all

AddHandler _device.UserInterfaceClosed, AddressOf _device_UserInterfaceClosed
 _device.Setup()

Code: Select all

Private Sub _device_UserInterfaceClosed(sender As Object, e As EventArgs)
        Dim filePath As String = System.IO.Path.Combine(System.IO.Path.GetTempPath(), Guid.NewGuid.ToString())
        Using dummyFileStream As FileStream = System.IO.File.Open(filePath, IO.FileMode.CreateNew)
            _device.SaveSettings(dummyFileStream)
            _device.SaveSettings()
        End Using
End Sub
But I get "Cannot get profile of device." exception.

Device is Canon ImageFormula DR-C125
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: SaveSettings()

Post by Alex »

Hello,

Thank you for your message.

We have fixed a bug in version 8.0.4.1 and since this version your code will work correctly.

Best regards, Alexander
Post Reply