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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top