This is where I'm adding the image(id)
Code: Select all
Private Sub DoScan()
Using oScan As New frmScan
oScan.SelectedDevice = cmbScanSource.SelectedItem.ToString
oScan.SkipMessage = True
If oScan.ShowDialog(Me) = DialogResult.OK Then
For i As Integer = 1 To oScan.ImageCollection.Count
_Scanpages.Add(CInt(oScan.ImageCollection.Item(i)))
If Not thumbPages.AddItemFromGdPictureImage(CInt(oScan.ImageCollection.Item(i))) = GdPictureStatus.OK Then
MessageBox.Show(mySystem.oGDPicture.GetStat.ToString)
End If
thumbPages.RedrawItem(thumbPages.ItemCount - 1)
thumbPages.Refresh()
Next
End If
End Using
End Sub
I made some changes to the TWAIN sample app to use a thumbview instead and created a new routine to add directly to it and that works as expected. So any pointers on what I could check (in my app) gratefully received.
Thanks
Dave