How can I get the original image

  • Thread starter ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®
  • Start date
¸

¸¶ÀÌÅ©·Î¼ÒÇÁÆ®

Hi.

If I paste image into the visio document.
then visio make new shape which contain foreignData.

How can I get the original image from shape's foreignData.

ex.) like this... but not work
MemoryStream stream = new MemoryStream((byte[])Shape.ForeignData);
Image img = Metafile.FromStream(stream);
 
C

Chris Roth [ Visio MVP ]

Try getting the object as a Visio shape, then check:

Shp.ObjectType

and

Shp.Object

This might get you further along - I can't remember the whole story, and my
sample is buried on my hard drive and I can't find it.

--

Hope this helps,

Chris Roth
Visio MVP
 
Top