re: Reading RTF table in Word

[email protected] Mon, 13 Sep 2004 10:38:44 -0700 (PDT)
Newsgroups gmane.text.xml.jfor.general
Message-ID <[email protected]>
For reference, I did find a workaround for my problem. Word does not
always like rtf output from jfor when using <fo:table-cell
number-columns-spanned="n"> The workaround is to create a new table
whenever columns need to be spanned.

I also found a rtf specification and tried to read the rtf file produced
by jfor and what word does when it reads it. I only looked at the code
briefly so I am not sure I understood everything correctly. JFOR uses an
rtf code that specifies the offset of the left edge of each cell. There is
also an rtf code that specifies when one cell should be merged to with the
next whenever jfor finds a number-columns-spanned attribute.

Word keeps the rtf code that jfor produces but it also seems to put in
redundant code that specifies the length of each cell (redundant because
you can find the size of the cell by subtracting offsets). When columns
are spanned Word does not seem to put in the correct cell size so although
the offsets are still specified correctly cell size is not.




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php