On Wednesday 14 December 2005 15:49, Michael Griffith wrote:
> I am havinf some trouble with the TOC generated in an RTF file I am
> producing -- and I am not sure if anyone else has run into this problem or
> if its something I am doing.
>
> I am using iText 1.3 to generate an RTF file and specifically,  I am
> interested in how the TOC feature works.
>
> I am manually adding my TOC entries to the document using RtfTOCEntry() and
> generating a link to update the tables as shown in the examples.
>
> On Mac/OSX Using MS-Word 2004 for Mac (Version 11.0) when you try to update
> the link, you get: Error! No table of contents entries found.
The problem here lies with the way iText generates TOC entries and what the OS 
X Word version understands.
iText generates fields that are flagged as being TOC entries. Unfortunately 
the OS X Word does not understand these fields and therefor reports that no 
TOC entries exist. I am currently working on adding stylesheet support to the 
RtfWriter2 and this will then make it possible to generate TOC entries also 
for OS X Word. Hopefully I will be able to make some progress in the coming 
weeks.

Greetings,
Mark
-- 
The true Southern watermelon is a boon apart, and not to be mentioned with
commoner things.  It is chief of the world's luxuries, king by the grace of 
God
over all the fruits of the earth.  When one has tasted it, he knows what the
angels eat.  It was not a Southern watermelon that Eve took; we know it 
because
she repented.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgpqS4sCcidKy.pgp
Description: PGP signature

Reply via email to