When I try to write xlsx with worksheet.write method, It tries to write with worksheet.write_url
method for long string that is start with https:// and it gives exception: 255 characters, it exceeds Excel's limit for URLS.
Exceptional example text:
https://www.example.com Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
So I changed my method with worksheet.write_string, but then when I try to write integer value with this method It gives me another exception:
irb(main):001:0> worksheet.write_string(0, 0, 1)
ArgumentError: wrong number of arguments (given 2, expected 1)
Hi,
When I try to write xlsx with
worksheet.write
method, It tries to write withworksheet.write_url
method for long string that is start withhttps://
and it gives exception:255 characters, it exceeds Excel's limit for URLS.
Exceptional example text:
So I changed my method with
worksheet.write_string
, but then when I try to write integer value with this method It gives me another exception:When you try with string there is no exception
I think
worksheet.write_string
method should havestr.to_s
in default.