Message 1 of 4
Not applicable
04-25-2017
02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to get the thumbnail to show in a picture box.
I did some research and found this code from the Mod Machine guys, but i'm getting an error. System.Runtime.InteropServices.COMException: 'Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))' on this line of code "thumbnail = thumbProp.value"
Sample Code
Public Sub WriteThumbnail()
Dim oDoc3 As Document
oDoc3 = ThisApplication.ActiveDocument
Dim oPropSet3 As PropertySet
oPropSet3 = oDoc3.PropertySets.Item("Inventor Summary Information")
Dim thumbProp As Inventor.Property = oPropSet3.Item("Thumbnail")
Dim thumbnail As stdole.IPictureDisp
thumbnail = thumbProp.value 'Error Here
Try
PictureBox4.Image = thumbnail
Catch ex As Exception
End Try
End Sub
Solved! Go to Solution.