Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 839 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 839 Bytes

WebAssembly bindings for the XLNT library

NPM

https://www.npmjs.com/package/xlnt

Blog posts

I'm writing a series of posts in my blog about porting C++ to WASM.
You can take a look here: Excel-ent experiment with WebAssembly

Demo

Simple test and proof of concept in JavaScript that exports a HTML table to excel (with rowspan and colspan)

<script src="./xlnt.js"></script>
<script>
    load_xlnt().then(function(xlnt)
    {
        book = new xlnt.workbook();
        sheet = book.active_sheet();

        sheet.using_cell("B2", c => c.set_value("asd"));

        book.download("demo.xlsx");
        
        sheet.delete();
        book.delete();
    });
</script>