Link to home
Start Free TrialLog in
Avatar of SimonKravis
SimonKravis

asked on

How can i show file thumbnails on an Access form

I want to display file thumbnail metdata on an Access form. I found some code for extracting and displaying the data for VB6  at http://www.vbaccelerator.com/home/VB/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp but when I port it into VBA I have problems transferring the picture data to a VBA control. The pcMemDC class from which the picture can be obtained has the property Itype IPicture but when I reference this property in VBA a compile error "Method or data member not found" appear even though the property name appears in a drop-down after I type the . after the class instance name.

A second problem is how to display the picture returned by pcMemDC - in VB6 this can be assigned to a PictureBox control using

Set PictureBox.Picture = c.Picture

Where c is an instance of pcMemDC

The VBA Image control has a picture property but the picture type may not be the same.

Any ideas on how to progress would be much appreciated.
ASKER CERTIFIED SOLUTION
Avatar of therealmongoose
therealmongoose
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SimonKravis
SimonKravis

ASKER

Thanks for the pointer - it wasn't the answer but it made me look harder and find it. The answer was to use an InkImage control instead of an Image control. This has a Picture property of type IPicture and the c.Picture assigment worked OK