Apache OpenOffice (AOO) Bugzilla – Issue 99098
Calc: Import Excel 2003 XML: Grid Line Color
Last modified: 2013-01-29 21:50:17 UTC
I am using the vanilla build of OpenOffice.org DEV300_m39 When opening an Excel 2003 xml file with a non-default grid line color, calc does not import the color correctly. In the xsl file: filter/source/xslt/import/spreadsheetml/spreadsheetml2000.xsl, GridlineColor uses the hex2decimal template. This template appears to change a color's RGB value to it's decimal value equivalent. I can only import colors up to a decimal value of 65535, or #00FFFF. That color happens to be CYAN. Any color with a decimal value higher than this does not work. When I run the xslt manually using xsltproc, the values are handled correctly. When I reconfigured my build environment with --with-system-saxon --with-system-libxslt the color imports with no problems at all. Something is wrong with the xslt processor provided by OpenOffice.org. I am not sure if this work-around will work on other platforms such as Windows, MAC, OpenSolaris, etc. which is why I made this bug report. Thank you, Daniel Watson
Created attachment 60097 [details] test document with custom grid line color
Here is a test document that demonstrates an incorrect importing of grid line color. This document is saved in the Excel 2003 XML format. When opened in Excel, the grid line is orange, but when opened in Calc, it becomes black.