Sheetjs: write with styles

Created on 28 Jun 2015  路  13Comments  路  Source: SheetJS/sheetjs

How can I write to excel with styles such as color,functions?

Style

Most helpful comment

@SheetJSDev how is that unfair to already paid companies? They've paid money in the darkages to receive product-support where the earlier was none.
As a company I consider my investment worthwhile if the product works as expected and I get continued maintenance. If you force the community to use a fork; then not only have you failed at promoting your own product but you have also created uncertainty which is not something any sane individual would invest in.

You're basically failing at grasping the fundamentals of opensource; You pay for support, not for features; My bets are always on the community when it comes to features and issues, but developer support is something only you as an legitimate entity can provide.

If the community gives you a pull-request then don't complain; instead say "thanks" and send out a happy news-letter to all your paying subscribers bragging that your product just got better or something.

I can only say that I'm discouraged from using this library after reading an backwards-thinking issue-response like this, will have to look for other alternatives.

All 13 comments

@jinfenggt - did you figure that out?

I see some options on the cell here https://github.com/SheetJS/js-xlsx#cell-object
But not sure how to use them when writing the file out.

I would like to know this as well

Currently, styles are not supported. There's a pull request that's being handled right now that would allow for the use of styles. Check out #128 for more info on the current state of styles. Last time I checked, the pull request was submitted, but there were some issues with the code.

I did this small check on the fork, reading a file with styles and writing it. But the styles are lost:

var XLSX = require('xlsx-style');

// read workbook
var workbook = XLSX.readFile('simple_excel.xlsx');

// write workbook
var wbout = XLSX.writeFile(workbook, 'new_file.xlsx');

Currently, styling is not available on this branch. The community and the developer are working together to implement styling options. You can checkout issue #128 for more info on styling. If you really need styling, I believe that there is a fork of this repo that has already implemented styling.

Is there any update concerning the styling?

Any update?

Is there any update concerning the styling?

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.

Really? The main reason to use XLSX is the styles. Hope you guys change your mind near future. I will need to switch my exportation to back-end.

@SheetJSDev how is that unfair to already paid companies? They've paid money in the darkages to receive product-support where the earlier was none.
As a company I consider my investment worthwhile if the product works as expected and I get continued maintenance. If you force the community to use a fork; then not only have you failed at promoting your own product but you have also created uncertainty which is not something any sane individual would invest in.

You're basically failing at grasping the fundamentals of opensource; You pay for support, not for features; My bets are always on the community when it comes to features and issues, but developer support is something only you as an legitimate entity can provide.

If the community gives you a pull-request then don't complain; instead say "thanks" and send out a happy news-letter to all your paying subscribers bragging that your product just got better or something.

I can only say that I'm discouraged from using this library after reading an backwards-thinking issue-response like this, will have to look for other alternatives.

@telamon At the end of the day, all work done on this open source project is charitable. In contrast to most popular and large open source projects, there are no banner ads on demo pages, no patreon or opencollective, no request for donations, no spyware or trackers or logos inserted into exported sheets, no VC backing SheetJS, nothing. We chose the very liberal Apache 2.0 License rather than try to trap companies with a license like Affero GPL. The Community Version is a passion project driven by true belief in open source, and we sacrificed thousands of hours and tens of thousands of dollars for development; testing computers and software; and documentation and support so that you and thousands of other people and companies can easily work with spreadsheets. In that spirit of open source, we continue to develop the Community version, adding features and fixing bugs 鉂わ笍

You may disagree with our pace or trajectory, but rest assured that we spent a very long time comparing options and concluded that the current path is the only one which actually gives us the autonomy and control to keep some SheetJS libraries open source and the resources to keep up with the new Office 365 monthly release cycle. We've had multiple significant acquisition offers that we turned down because the acquiring companies want us to halt efforts on the various open source projects.

Please take the styling out of the documentation for the community edition then! It's extremely confusing to use the tool under that assumption, and then have to find out from browsing closed github issues that you chose not to offer that feature, despite your readme saying otherwise.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

m-ketan picture m-ketan  路  3Comments

magtuan picture magtuan  路  3Comments

jamesbillinger picture jamesbillinger  路  4Comments

gustavosimil picture gustavosimil  路  3Comments

DannyRyman picture DannyRyman  路  3Comments