Loading...

Multi-TIF Delete Image Issue

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Multi-TIF Delete Image Issue

Postby eintriago » Wed Oct 20, 2010 2:43 pm

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
eintriago
 
Posts: 1
Joined: Thu Sep 23, 2010 8:46 pm

Re: Multi-TIF Delete Image Issue

Postby Loïc » Sat Oct 23, 2010 7:51 pm

Hi Eddie,

Can you please provide me with sample code on proper way of achieving this


Sure, but what do you want to do ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest