I'm working on a Ruby script to embed formatting commands in a .csv file so it can be turned into a new formatted .xls file.
I've accomplished this and it works well....except for cell formatting with borders.
I can do any custom formatting of cells that I want and have no issues/errors with Windows 7 & XP & Excel 2003/2007/2010 (and Linux & LibreOffice Calc 3.5.3.2) , but if I add borders to a Spreadsheet::Format, you can no longer bring up the right-click "Format Cells" menu (nothing happens) for ANY cell that I created with 'spreadsheet' (borders or not) in any version of Excel!
Additionally, any spreadsheet I create with borders on even 1 cell will eventually cause Excel to crash if you start trying to bring up the "Format Cells" menu and/or copy or otherwise start using the spreadsheet!
LibreOffice does NOT suffer from this problem and appears to have no issues with "Format Cells" menu using the generated .xls, borders or no.
I'm using the 0.7.2 version and I've been using 1.8.7-p358 & 1.9.3-p194 on both Linux (Ubuntu 12.04 x64) and Windows 7 x64. The issue persists no matter the combination used to create or open the .xls.
Everything appears to be fine until a border is turned on one or more cells and then Excel will have issues and quickly crash if you persist in trying to use the spreadsheet. I'm getting no useful info from Excel or Windows.
I'm putting this out here to ask if anyone else has tried to use borders in cell formatting and whether or not they have had issues. Note that the sheet will open and is viewable in Excel so if you just created a sheet with cell borders and opened it to look at it, it would be fine and you'd never know you had a problem unless you tried to use the spreadsheet
I'm creating a Spreadsheet::Format and then updating it with parameters supplied and then using a statement like 'sheet1.row(cnt).set_format 0,format' so I don't believe I'm doing anything incorrect and when I use pry to examine the objects, I see things being updated as I expect.
I suspect there is something buggy with the border in a Format, but it's getting a bit beyond me to chase it down.
Any ideas or experiences with using borders in a Format?
Thanks for the great library, we use it all them.....but the boss wanted me to go 'fancy' and you see where it lead me....
Robert