On 07/08/2013 01:17 PM, Uma Shankar M wrote:

I am trying to generate Word (.docx) output from FO using XMLMind XSL
Utility. I have noticed that the “background-color” property of
<fo:table-cell> is not working. In the attached fo, you can see that a
table-cell (under 1^st table-row) and 2nd table-row elements contain the
background-color attribute set to “#58595B” (a gray color). However, the
table is appearing without any background color. However, these
background colours appearing in PDF output generating using XEP.

The Conformance <http://www.xmlmind.com/foconverter/conformance.html>
list indicates that this property is supported.

This is indeed the case. We routinely generate .docx files containing tables having colored rows and cells. See for example the very basic "Countries" example used in "How it works" (http://www.xmlmind.com/foconverter/how_it_works.html):

http://www.xmlmind.com/foconverter/how_it_works/countries.fo

http://www.xmlmind.com/foconverter/how_it_works/countries.docx




Could you please let me know how to fix this issue?


I'm sorry but I don't know.

It works as expected if you generate RTF or .odt (OpenOffice), but not when you generate .docx or WordprocessingML (MS-Word 2003).

It works as expected whatever the output format when the table having colored rows and cells is not nested inside another table.

We'll look at our code for the next release (not before next September) and if it's an XMLmind bug, we'll fix it. However, there is also a little chance that it's a MS-Word bug, in which case there is not much we can do.

Meanwhile, the only workaround is to make the XSL-FO you generate simpler.



--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to