Luiz Antonio Falaguasta Barbosa wrote:
> Hi Rainer,
> Now I understood. I have to select Insert > Field, choose IncludePicture
> from Field Names and put a name into Field Name. That is ok.
> I could see that, if I press ALT + F9, I get the following:
>
> {INCLUDEPICTURE "prodPic" \d \MERGERFORMAT}
>
> where, prodPic is the name chosen for field name.
> After that, what should I do?
> Thanks in advance!
> Luiz
Hi Luiz,
in Word files, fields are encoded as sequences of three markers. The
field text which you see in Word, is actually stored as:
<13> INCLUDEPICTURE "prodPic" \d \MERGERFORMAT <14><1><15>
(The numbers in angle brackets are in hex.) Word displays the <13> as
opening brace '{', <15> as closing brace '}'. The <14> is not shown and
the <1> denotes an embedded graphics.
When you insert such a text sequence, you must give it character
properties. The CharacterRun containing <13> (one character) must be
formatted by calling setSpecialCharacter(true). ' INCLUDEPICTURE
"prodPic" \d \MERGERFORMAT ' has no specific formatting and
'<14><1><15>' is again changed by calling setSpecialCharacter(true).
So you should insert the whole field in three steps.
If you need more information, just yell :-)
Best wishes,
Rainer
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]