Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
SheetJS escribe archivos de Excel en blanco en javascript

Estoy tratando de leer un archivo de Excel y tomé datos que son útiles para mí, luego presioné una matriz y llamé a esta matriz cuando estoy escribiendo el archivo xlsx. Aunque puedo ver los datos de la matriz en la consola, escribe un archivo xlsx en blanco cuando ejecuto la función.

 var tempExportList = [id,city,disctrict,region,geocode(loc)] exportlist.push(tempExportList);// I am pushing the arrays to the exportlist array in for loop exportExcel(exportlist);// I call the function function exportExcel(exList){ let wb = XLSX.utils.book_new(); wb.Props = { Title: 'test', Subject: 'Test', Author: 'B', CreatedDate: new Date(), }; let wsName = 'newSheet'; var wsData = [exportlist]; console.log(wsData);//I can see the output here it is not null let ws = XLSX.utils.aoa_to_sheet(wsData); XLSX.utils.book_append_sheet(wb, ws, wsName); XLSX.writeFile(wb, 'test.xlsx'); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!