I'm trying to create some multi-line cells with the axlsx gem in Ruby. I found this issue which suggested a fix using to_xml_string
- but no matter what I try I can't get those multi-line cells!
Here is my current code:
def saveAsXlsx
Axlsx::Package.new do |p|
p.workbook.add_worksheet(:name => "Basic Worksheet") do |sheet|
sheet.add_row @headers
@headers.each_with_index do |line, i|
@headerValues[i].unshift @noteValues[i]
sheet.add_row @headerValues[i]
sheet.to_xml_string
end
end
p.serialize('simple.xlsx')
end
end
If anyone can help me out here I would be most appreciative...