question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Writing Style information into Excel

See original GitHub issue

I am trying to preserve the style information while I read and then write an excel File. Seems like the style information is read when I read the file, but unfortunately when I write the file its not preserved.

Thoughts on how I can read and write the style information?

            excelFile = XLSX.readFile(file.path, {
                cellStyles: true
            });

            // some processing here!

            XLSX.writeFile(excelFile, fileName, {
                cellStyles: true
            });

@sheetjs After a conversation with @elad (https://github.com/hubba/js-xlsx/commit/5e9bca78f2b0c54242cefc8a358f3151232941ab#commitcomment-8039333) I was informed that the styling information is only read, and not written back to excel.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:20
  • Comments:167 (47 by maintainers)

github_iconTop GitHub Comments

51reactions
SheetJSDevcommented, May 20, 2018

We offer this in the Pro compendium. Since companies have paid for the features already, it would be unfair to them if we turned around and made it available as open source. We have a longer comment in a gist.

9reactions
samuelneffcommented, Nov 8, 2017

Where does this stand today as far as merging xlsx-style into this main project?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the format of a cell - Microsoft Support
Select the cells with the Excel Style. Right-click the applied style in Home > Cell Styles. Select Modify > Format to change what...
Read more >
How to use Excel styles efficiently | TechRepublic
In this article, I'll introduce you to Excel styles and show you how to use them to use more efficiently in Excel.
Read more >
Excel 2013: Formatting Cells - GCF Global
When creating a workbook in the workplace, you'll want to select a font that is easy to read. Along with Calibri, standard reading...
Read more >
Cell Styles in Excel: The Complete Guide - GoSkills
That way, you don't have to decide on or manually apply the colors, fonts, sizes, and borders that would be considered appropriate for...
Read more >
Cell Styles in Excel: Applying & Modifying Styles - Study.com
Select the cell range for the column titles. · Go the Home menu in the ribbon. · Look in Styles grouping of commands....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found