Load Thumbnails
Posted: Wed Sep 28, 2016 2:10 am
Hi,
I tried to load pdf thumbnails to the ThumbnailEx component using the code below but the thumbnails shows for a split second only and it disappears. I think I've done it wrong.
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
GdPictureStatus status = oGdPicturePDF.LoadFromFile(filePath, false);
if (status != GdPictureStatus.OK)
{
MessageBox.Show("Error opening the PDF", "Error " + status.ToString());
return;
}
ThumbnailEx1.LoadFromGdViewer(GdViewer1);
GdViewer1.DisplayFromGdPicturePDF(oGdPicturePDF);
Can you guide me please. Thank you very much.
I tried to load pdf thumbnails to the ThumbnailEx component using the code below but the thumbnails shows for a split second only and it disappears. I think I've done it wrong.
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
GdPictureStatus status = oGdPicturePDF.LoadFromFile(filePath, false);
if (status != GdPictureStatus.OK)
{
MessageBox.Show("Error opening the PDF", "Error " + status.ToString());
return;
}
ThumbnailEx1.LoadFromGdViewer(GdViewer1);
GdViewer1.DisplayFromGdPicturePDF(oGdPicturePDF);
Can you guide me please. Thank you very much.