GithubHelp home page GithubHelp logo

Comments (7)

vergilet avatar vergilet commented on July 17, 2024 1

@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:
Знімок екрана 2019-09-14 о 22 20 28

But I receives table with two extra columns:
Знімок екрана 2019-09-14 о 22 21 48

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.

from spreadsheet.

zdavatz avatar zdavatz commented on July 17, 2024 1

Try LibreOffice.

from spreadsheet.

zdavatz avatar zdavatz commented on July 17, 2024

Have you read this? https://github.com/zdavatz/spreadsheet/blob/master/GUIDE.md

from spreadsheet.

vergilet avatar vergilet commented on July 17, 2024

Can you please point me at exact place in the GUIDE?

from spreadsheet.

zdavatz avatar zdavatz commented on July 17, 2024

Does this help you: https://stackoverflow.com/questions/39986323/ruby-spreadsheet-getting-column-count-in-xls-file/39986936

from spreadsheet.

zdavatz avatar zdavatz commented on July 17, 2024

with which software do you open the file?

from spreadsheet.

vergilet avatar vergilet commented on July 17, 2024

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.

from spreadsheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.