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);