views:

129

answers:

1

I have a Delphi (BDS 2006) application with TOleContainer control. It has an OLE object inside, MS Equation formula (name 'Equation.3') from MS Office 2003.

How can I extract the vector metafile from the formula image to insert it into web-page or some other document without OLE support?

TOleContainer has only 'Equation.3' objects inside, no other possibilities. I've tried to use .Copy method to make it through clipboard, but it's copied an empty image.

+2  A: 

When you use the SaveAsDocument method of your OleContainer, a compound document is created. That document will contain an IStream with a name #2OlePress000 (#2 is byte value 2). The contents of this stream is a cached representation of the equation and is used to show it on computers that don't have the equation editor installed.

If you know the format of that stream, maybe you can use it to create an image to show on a webpage.

The_Fox