we have a problem when creating RTF-Files with WMF-Graphics included. Do someone has an idea whats wrong ? Thanks for help! Markus Sorry for my english!
First we create a TMetafile with the following parameters:
Then we create a TMetafileCanvas from the above TMetafile to paint on.
When painting is finished, we insert in the RTF-File the following tags:
, widthPix, heightPix, widthPix * 20, heightPix
* 20 // TWIPS = 1/20 Pixel );
After inserting these tags we write the Metafile to the RTF-File by
converting every Byte
we get of the TMetafile->SaveToStream Function to hexvalue. After that we
add an "}".
When we open the RTF-File with MS-WORD there is all the Text, but no
there is a Box at the place where the graphic shoud appear, but no image.
The similar same procedure with a TBitmap (other tags) works fine.
Kretz Software GmbH
Do someone has an idea whats wrong ?
Thanks for help!
Sorry for my english!