-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing styles from scratch #16
Comments
Actually it's intended specifically to do just that. E.g. see https://github.com/protobi/js-xlsx/blob/master/tests/test-style.js. Is there a case that isn't working? |
So, judging by this, in order to create a workbook from some other parsed data and add styling to cells I would need to write the spreadsheet without styling, read it back with cellStyles: true, and then write it back out with the styling again? Or am I misunderstanding? |
@araymer This project is just a fork of the js-xlsx project. All it requires is a plain Javascript object. You can create the object directly from scratch. You may be referring to examples of round-trip tests where the goal was to prove styles can be both read and written without loss in either direction. Copy the js below into a file
|
This library doesn't seem to support writing cell styles from scratch. For instance, parsing a JSON object and writing directly to a sheet with styles (or comments)
The text was updated successfully, but these errors were encountered: