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

158
Views
Problema de estilo en una hoja de Excel en nodejs con excelJS

estoy usando la biblioteca excelJS para manipular el archivo de Excel, estoy tratando de marcar una fila en un color determinado y está llenando casi toda la tabla, así que intenté llenar solo una celda y devuelve el mismo problema y colorea casi toda la hoja. ¿Alguien sabe si es un error de biblioteca conocido o es un error con mi código?

 const wb = new ExcelJS.Workbook(); const fileName = 'DevExercise.xlsx'; wb.xlsx.readFile(fileName).then(() => { // Iterate over all sheets wb.eachSheet(function (worksheet, sheetId) { // Iterate over all rows that have values in a worksheet worksheet.eachRow(function (row, rowNumber) { worksheet.getCell('G' + rowNumber).value = sumRow(row.values[3], row.values[4], row.values[5], row.values[6]) if (row.values[2] == "Rent"){ worksheet.getCell('C1').fill = { type: 'pattern', pattern:'darkVertical', fgColor:{argb:'ffff00'} }; console.log("C" + rowNumber); } }) }); wb.xlsx.writeFile("copy" + fileName) .then(function() { // done }); }).catch(err => { console.log(err.message); }); ```
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!