Hi,
I'm using GdPicturePro5 (AxInterop and Interop) in my vb.net windows form.
All my image scanning works fine, except now I'm adding the ability for user to delete images via the TiffDeletePage method of the Imaging object. The button is able to delete all pages, except the last one...
Can you please provide me with sample code on proper way of achieving this. My code below fails on the last page - giving me error on the "oGdViewer.SetNativeImage(intImageID)" line
**************************************************
' intImagePage is page # to delete
Dim intImageID As Integer = Imaging1.TiffCreateMultiPageFromFile(strLocalStore & strCurrentFile)
Imaging1.TiffSelectPage(intImageID, intImagePage)
oGdViewer.LockControl = True
Imaging1.TiffDeletePage(Imaging1.GetNativeImage, intImagePage)
Imaging1.TiffSelectPage(intImageID, oGdViewer.CurrentPage)
oGdViewer.SetNativeImage(intImageID)
oGdViewer.DisplayFrame(oGdViewer.CurrentPage)
oGdViewer.LockControl = False
oGdViewer.Redraw()
Imaging1.TiffSaveMultiPageToFile(intImageID, strLocalStore & strCurrentFile)
**************************************************
Any help will be greatly appreciated.
Eddie
