Closed vergilet closed 5 years ago
Have you read this? https://github.com/zdavatz/spreadsheet/blob/master/GUIDE.md
Can you please point me at exact place in the GUIDE?
@zdavatz,
Sorry, maybe I have described my case unclearly. To generate a new XLS I use the following code:
book = Spreadsheet::Workbook.new
sheet = book.create_worksheet
header = ['col_1, 'col_2', 'col_3']
sheet.row(0).concat(header)
spreadsheet = StringIO.new
book.write(spreadsheet)
spreadsheet.string
I am expecting to receive the next screen:
But I receives table with two extra columns:
The only solution I came up is to merge column 3 with 4th and 5th:
sheet.merge_cells(0, 2, 0, 4)
But I believe I am missing something. Any suggestions? Thanks.
with which software do you open the file?
I use Numbers App (https://www.apple.com/uk/numbers/) Now I see that it could be the problem with software.
Thanks for help! Closing it.
Try LibreOffice.
I want to generate new XLS file with 3 column, but it generates 5 columns. Can anyone help me with this? Are there any options to set that? Thanks.