On Sun, 2005-03-20 at 16:09 +0200, Alan Yaniger wrote: > Hi list-members, > > I've got a problem exporting RTL tables to Word format. When I save a > document with an RTL table to Word 97/2000/XP doc format, and open it in > Word 2000, the table borders are gone, and the text in all the table > cells appears as a single line of text, with white boxes interspersed > (presumably representing the table border characters). If in OOo, I > change the table direction to LTR, then export, Word 2000 reads it ok. > Interestingly, if I change the direction back to RTL *in Word*, I get > the garbage I described earlier. > > This problem only exists in Word 2000. When I read the file in Word > 2002, the table looks fine. > > It seems to me that Word 2000 does not recognize the Microsoft table > BiDi parameter 0x560B, which is how OOo specifies the table direction in > sw/source/filter/wrtw8nds.cxx. Playing with its value didn't help. In > fact, when I made an identical document in Word 2000, and saved it, I > did a hex search and I didn't find the bytes 560B in the document. > > Could anyone provide advice about how I can save an RTL table so that > Word 2000 will read it?
Well I can suggest a few things to look into, in ww8scan.cxx take a look at IsReplaceAllSprm and IsExpandableSprm. Some sprms are references into the datastream where more sprms are found. One of those sprms, I think 0x646B, is found in table properties, and it references sprms which are more table properties. The first thing to make sure is that the missing "0x560B" under the natively created 2000 isn't actually in a list of sprms referenced through e.g. a indirect reference 0x646B sprm. (they'd be in the Data stream in this case) Perhaps it could be something like word 2000 has a bug where it will only accept the 0x560B property if there are referenced indirectly, and not directly? Or (maybe more likely) word 2000 just doesn't use 0x560B and word 2002 uses the indirect thing because of exactly this problem we see in word 2000, and there is an alternative older way of specifying the direction in 2000 which is deprecated in 2002 and overridden with the 0x560B stuff. C. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
