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 » Sat Feb 11, 2012 5:01 pm

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: 1474
Joined: Thu Jul 10, 2008 2:21 pm

Re: SaveSettings()

Post by Alex » Mon Feb 20, 2012 11:22 am

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

Who is online

Users browsing this forum: No registered users and 1 guest