Can't display page from Multipage

Discussions about document viewing.
Post Reply
edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Can't display page from Multipage

Post by edlemus » Sat Feb 26, 2011 10:38 pm

Hi,

It seems that when a new page(s) is added to a multipage document and it is already attached to a GdViewer object the added page(s) cannot be selected until another page that previously existed is selected. This only happens when the page(s) are added at the end of the document, at index 1 or between any other existent indexes this isn't an issue.
I've prepared this little piece of code to reproduce the issue.

Code: Select all

int imgHandle = gdImaging.TiffCreateMultiPageFromFile("c:\\a.tif");
            gdViewer1.DisplayFromGdPictureImage(imgHandle);
            gdImaging.TiffAppendPageFromFile(imgHandle, "c:\\b.tif");
            //gdViewer1.DisplayPage(1);
            gdViewer1.DisplayPage(2);

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Can't display page from Multipage

Post by Loïc » Mon Feb 28, 2011 10:19 am

Hi,

I am not sure to understand your problem.
However, maybe adding a call to the Redraw method of the GdViewer object at the end of the edition process should help...

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest