Giter Club home page Giter Club logo

Comments (7)

helloyou2012 avatar helloyou2012 commented on June 2, 2024

@NikiSunshine , I wrote a demo, it is ok. Could you supply more details.

const xlsx = require('node-xlsx').default;
// Parse a file
const data = xlsx.parse('./examples/complex.xlsx');

console.log(JSON.stringify(data, null, '  '));

/*
[
  {
    "name": "Sheet1",
    "data": [
      [
        "Category",
        "Budget",
        "Actual",
        "Difference"
      ],
      [
        "Auto",
        "$200.00",
        "$90.00",
        "$110.00"
      ],
      [
        "Entertainment",
        "$200.00",
        "$32.00",
        "$168.00"
      ],
      [
        "Food",
        "$350.00",
        "$205.75",
        "$144.25"
      ],
      [
        "Home",
        "$300.00",
        "$250.00",
        "$50.00"
      ],
      [
        "Medical",
        "$100.00",
        "$35.00",
        "$65.00"
      ],
      [
        "Personal Items",
        "$300.00",
        "$80.00",
        "$220.00"
      ],
      [
        "Travel",
        "$500.00",
        "$350.00",
        "$150.00"
      ],
      [
        "Utilities",
        "$200.00",
        "$100.00",
        "$100.00"
      ],
      [
        "Other",
        "$50.00",
        "$60.00",
        "($10.00)"
      ],
      [
        "Total",
        "$2,200.00",
        "$1,202.75",
        "$997.25"
      ]
    ]
  }
]
 */

from better-xlsx.

NikiSunshine avatar NikiSunshine commented on June 2, 2024

I used the same method as you did. But the file be exported to be read again still has a sheet less.

from better-xlsx.

NikiSunshine avatar NikiSunshine commented on June 2, 2024

I tested three excel which was exported by better-xlsx. Same issue

from better-xlsx.

NikiSunshine avatar NikiSunshine commented on June 2, 2024

The workbook has more than one sheet. And when I delete other sheets to leave the first one. The first one can be read.Or, it can't be read, I can only get the data from the second one on.

from better-xlsx.

helloyou2012 avatar helloyou2012 commented on June 2, 2024

@NikiSunshine , it is bug of js-xlsx see: SheetJS/sheetjs#445

from better-xlsx.

NikiSunshine avatar NikiSunshine commented on June 2, 2024

But whatever js-xlsx, node-xlsx, and so on . It has the same question.

from better-xlsx.

helloyou2012 avatar helloyou2012 commented on June 2, 2024

@NikiSunshine , node-xlsx dependent on js-xlsx.

from better-xlsx.

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.