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.
Load Thumbnails
Re: Load Thumbnails
Hi,
Please replace:
by:
With best regards,
Loïc
Please replace:
Code: Select all
ThumbnailEx1.LoadFromGdViewer(GdViewer1);
GdViewer1.DisplayFromGdPicturePDF(oGdPicturePDF);
Code: Select all
GdViewer1.DisplayFromGdPicturePDF(oGdPicturePDF);
ThumbnailEx1.LoadFromGdViewer(GdViewer1);
Loïc
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Re: Load Thumbnails
Works great!! Thank you so much Loic..you're really a big help..
Who is online
Users browsing this forum: No registered users and 2 guests