Thumbnail MovePage
Thumbnail MovePage
In my webpage I need to move the position of a page when a user selects a thumbnail and clicks a button. I've got the Thumbnail image moving and I redraw the image so it all looks ok in the Thumbnail, however when I click on a thumbnail after I've moved a page it still displays the original page in the viewer, not the page that has taken it's place. How do I update the viewer to what the Thumbnail control now holds??
Re: Thumbnail MovePage
This is not really the viewer that needs to be updated but the multipage file itself. When changing the order of the thumbnails you have to change the pages order in the file as well otherwise the thumbnails order has not correlation with the actual pages order.
You should take a look at the demo application we provide called "Page Manipulation", on the ItemMoved even from the ThumbnailEx control, here is what's done:
You should take a look at the demo application we provide called "Page Manipulation", on the ItemMoved even from the ThumbnailEx control, here is what's done:
Code: Select all
If m_DocumentFormat = DocumentFormat.DocumentFormatPDF Then
m_NativePDF.MovePage(srcIdx + 1, dstIdx + 1)
Else
If m_DocumentFormat = DocumentFormat.DocumentFormatTIFF Then
m_GdPictureImaging.TiffMovePage(m_NativeImage, srcIdx + 1, dstIdx + 1)
End If
End If
Who is online
Users browsing this forum: No registered users and 1 guest