axlsx icon indicating copy to clipboard operation
axlsx copied to clipboard

Line Chart Crashes Excel 2007

Open ottodude125 opened this issue 13 years ago • 3 comments

For simplicity lets say my file name is "test.xlsx".

I have written my own examples and have tried using the examples provided here but both cause Excel to crash when it is opened. I have provided images of the Error messages excel generates when it is opening the file.

openerror

errorresult

When you try to open the file excel will do what it can to recover which is usually throwing away the conflicting charts and then allowing you to view the rest of the worksheets.

After some debugging I have tracked the error to be located in the file location: "test.xlsx\xl\charts\chart1.xml" where chart1.xml name is generic and it is replaced with whichever chart is causing the conflict.

The line in this xml file that is causing the error is "a:round". When I delete this line the file opens up perfectly fine with no errors. xml error

The line in the axlsx code that is causing an error is:

chart.add_series :data => sheet["A3:A6"], :title => sheet["A2"], :color => "0000FF"

And I find if I remove ":color => "0000FF" from the line then excel will open the file just fine.

As a couple side notes. I am using Office Excel 2007 as part of Professional Plus 2007 on a Windows 7 computer. I tried to open the file on my computer and also had a coworker try it on theirs and we both got the same errors. I originally was developing on a Macbook Pro and was using the file in Excel for Mac 2011 and I was able to open up the file with no errors

ottodude125 avatar Oct 30 '13 19:10 ottodude125

Hey @ottodude125 ! So why did you close this issue?

jughead avatar Dec 02 '13 11:12 jughead

I assume you are referring to this issue which is # 260. As of right now it is still open. I closed 256 which referenced 260.

ottodude125 avatar Dec 02 '13 12:12 ottodude125

Oh, I see. Thanks

jughead avatar Dec 02 '13 12:12 jughead