Inserting image files and RTF

K

kojikabuto

Hello

I'd like to insert an image in a RTF document using a programming
language (C#), this image must be aligned to the right and the text wrap
around the picture.
This is the code I found (from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec_3.asp)
to insert an image in a RTF document, where in the "shape properties" I
tell how the picture is aligned (Text Wrap Around Shape and Wrap Both
sides of Shape):

{\shp
{\*\shpinst[\shape properties]
{\sp {\sn ....} {\sv [value]}}
{\sp {\sn pib} {\sv {\pict{[\picture properties]{\*\blipuid[N]}[HEX
CODE#1]}}}
{\sp {\sn ....} {\sv [value]}}
}
{\shprslt[\shape properties]
{\pict[\picture properties]\wmetafile8\bliptag[N]{\*\blipuid[N]}[HEX
CODE#2]}
}
}


Then I see that two different Hex Codes for the same image file. What
are these codes? I can get this code from the bin file, but what is the
other code and how to get it?

Thank you and sorry for my really poor English

Cheers
 

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