Hi Andrey,
After several days of using EnhMetaFileBits I can say the following.
This method returns an object, which represents an array of bytes.
Essentially it's 8-bit representation of area. You can use it as array of
bytes, .NET streams can work with these arrays.
The area is strange. Its height equals Range width, its width always
equals page width.
Also I've noticed that if a bit has no information it equals "0". When
converting to image, "0" become black color. Up till now I don't know what
to do with that.
To my mind EnhMetaFileBits is unfinished method, it's a good idea with no
good realization.
Thank you for the information you've gleaned from experimenting with the
method. It sounds as if this method is using a similar principle as when
inserting a frame around selected text (select the text, then "Insert frame"
from the Forms toolbar). That also includes the entire width between the
margins.
In another group, a colleague showed a method to "stream" the data to a file,
using ADODB. I tried that on a selected graphic, and the result was just the
graphic (InlineShape object). So, to that extent, it does work to extract
graphical objects from a document.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail