How can I specify the text wrapping style of a picture in Rich Text Format (RTF)?

  • Thread starter Thread starter simon22
  • Start date Start date
S

simon22

Guest
Hi - I am generating a document in Rich Text Format and I want to specify the wrapping format of the picture so that text can appear in front of it. I have worked out how to generate a Rich Text Format document and how to insert the picture into it. But I cannot work out how to change the properties of the inserted picture in such a way that ordinary document text appears in front of it, which is what I need to do.

To insert the picture I use a command like this:

{\*\shppict {\pict\jpegblip\picw686\pich927
FFD8FFE000104A46494600010101006000600000FFDB0043000302020302020303030304030304050805050404050A070706080C0A0C0C0B0A0B0B0D0E12100D
etc etc
}}

where the picture information is included in hexadecimal format. That works fine. But how do I change the text wrapping for this picture? There is a shape command \shpwrN which appears to be what I need (\shpwr3 specifically I think). And the spec says you can assign shape properties to a picture using the \picprop command. The relevant sections of the spec seem to imply that I need to add something like this to the end of the first line above:

{\*\picprop{\sp{\sn #PCDATA}{\sv #BDATA}}}

where I need to substitute the shape name for #PCDATA and the shape value for #BDATA. So what is the shape name? shpwr? And it's value? Is that 3? I don't know either what values I'm trying to set or how I'm supposed to set them. The spec merely says that #PCDATA is "Text (without control words)" and #BDATA is "Binary data". So given that, if I am trying to set a value of 3 for shpwrN (if), how do I do that in practice? I've tried everything I can think of and nothing works. Any help will be much appreciated.


Simon

Continue reading...
 
Back
Top