AK3003
11-24-2008, 12:16 AM
Friends,
I have an automated program, which embeds .jpeg file as an attachment, displays as an icon in my Word document (v2007). Was able to get the icon label (which matches the file name say Test.jpeg) whereas I could not get the file path details, which got saved in my machine.
For each inShape in ActiveDocument.InlineShapes.Count
Set objOLE = inShape.OLEFormat
fileName = objOLE.IconLabel
'returns displayed icon name (matches file name)
Set objLink = inShape.LinkFormat
srcFile = objLink.SourceFullName
' returns Nothing
Next
and have read somewhere that LinkFormat object is not applicable for embedded objects.
Is it possible to get the source full name (file name includes file path) associated to a embed object?
Thanks in Advance.
--AK.
I have an automated program, which embeds .jpeg file as an attachment, displays as an icon in my Word document (v2007). Was able to get the icon label (which matches the file name say Test.jpeg) whereas I could not get the file path details, which got saved in my machine.
For each inShape in ActiveDocument.InlineShapes.Count
Set objOLE = inShape.OLEFormat
fileName = objOLE.IconLabel
'returns displayed icon name (matches file name)
Set objLink = inShape.LinkFormat
srcFile = objLink.SourceFullName
' returns Nothing
Next
and have read somewhere that LinkFormat object is not applicable for embedded objects.
Is it possible to get the source full name (file name includes file path) associated to a embed object?
Thanks in Advance.
--AK.