cxn03651 / write_xlsx

Rubygem for create excel xlsx file
http://cxn03651.github.io/write_xlsx/
MIT License
283 stars 64 forks source link

Error creating columns #11

Open YuvalNaturalInt opened 10 years ago

YuvalNaturalInt commented 10 years ago

Hello,

I've had trouble with the col_name.rb - it tried to create column names from Rational numbers and it failed on the chr function - in the end of each iteration i've converted the 'col' parameter to integer and everything works..

Thanks Yuval

cxn03651 commented 10 years ago

Hi,

in while loop, col and remainder are always integer, because col is set to integer before loop. so, ("A".ord + remainder -1) should be integer. I think...

will you show me error message and code which cause error.

cxn03651

YuvalNaturalInt commented 10 years ago

Hi,

I've noticed we are using in our application the mathn module - which changes the Fixnum type - once we've isolated it's use my problem was fixed without any change.

I've sorry i've found this only now. Thank you anyway.

Yuval

On Tue, Apr 22, 2014 at 10:50 AM, H.NAKAMURA notifications@github.comwrote:

Hi,

in while loop, col and remainder are always integer, because col is set to integer before loop. so, ("A".ord + remainder -1) should be integer. I think...

will you show me error message and code which cause error.

cxn03651

Reply to this email directly or view it on GitHubhttps://github.com/cxn03651/write_xlsx/issues/11#issuecomment-41012600 .