dunkelrot / elxml Goto Github PK
View Code? Open in Web Editor NEWminimalistic JavaScript OOXML Excel export
License: MIT License
minimalistic JavaScript OOXML Excel export
License: MIT License
Hello,
I was looking for a way to fix the color of fonts (by setting cells of course)
Unfortunately, patternFill => bgColor seems useless to set the color.
Sorry if it is not an issue and Thanks in advance for bug fixing
Is there a way to output merged cells?
When setting a cell type to "CELL_TYPE_FORMULAR" and the value to a formula string e.g. =SUM(B2:H2) the resulting spreadsheet loads the formula as if it was a string. The cell displays the formula as opposed to actually doing the calculation and displaying the result.
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
on a large amount of rows and columns
more than > 100.000 rows
and > 5 columns
I'm currently getting Can't resolve 'fs' errors in several modules:
Module not found: Error: Can't resolve 'fs' in '\node_modules\archiver\lib'
Module not found: Error: Can't resolve 'fs' in \node_modules\elxml'
Module not found: Error: Can't resolve 'fs' in '\node_modules\fs.realpath'
Module not found: Error: Can't resolve 'fs' in '\node_modules\glob'
Module not found: Error: Can't resolve 'fs' in '\node_modules\graceful-fs'
Hi. This is a great library! Have you decided what the licensing for it is going to be? MIT, hopefully :) ?
If you don't define any styles, Excel (2010) throws an "error in styles.xml".
var excel = require("elxml");
var wb = excel.createWorkbook();
// wb.createStyle("Standard");
var sheet = wb.addSheet('test sheet');
var row = sheet.addRow(1);
row.addCell('A').setValue('test value');
wb.save('test-file.xlsx', function() {});
if you include the line wb.createStyle("Standard");
, the error goes away.
These are the lines that change in styles.xml:
<cellStyleXfs count="0"/>
<cellXfs count="0"/>
<cellStyles count="0"/>
<cellStyleXfs count="1">
<xf numFmtId="0" fontId="0" fillId="0" borderId="0"/>
</cellStyleXfs>
<cellXfs count="1">
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
</cellXfs>
<cellStyles count="1">
<cellStyle name="Standard" xfId="0" builtinId="0"/>
</cellStyles>
Maybe these tags must not be empty or self closing?
btw. awesome module. Thanks for sharing! :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.