Git Product home page Git Product logo

excelbuilderjs-node's Introduction

1x-badge

Top Langs

excelbuilderjs-node's People

Contributors

gitter-badger avatar riyadhalnur avatar snyk-bot avatar zhdzmn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

excelbuilderjs-node's Issues

Unpredictable row sort data by using "generateFiles" in report

Hi guys,
I can generate report either only data or with image.
As soon as I adding "generateFiles()" call the row order unpredictable.
But I need report with logo and data.
Please can you review an fix ASAP.

P.S. Why you are not supporting adding cell data "addData('A5', 'Hello World')"
I have header in my report when data start from row 10 and I have no idea what should I do???

var originalData = [
        ['Artist1', 'Album', 'Price'],
        ['Buckethead2', 'Albino Slug', 8.99],
        ['Buckethead3', 'Electric Tears', 13.99],
        ['Buckethead4', 'Colma', 11.34],
        ['Crystal Method5', 'Vegas', 10.54],
        ['Crystal Method6', 'Tweekend', 10.64],
        ['Crystal Method7', 'Divided By Night', 8.99]
    ];

    var artistWorkbook = Excel.createWorkbook();
    var albumList = artistWorkbook.createWorksheet({name: 'Album List'});

    albumList.setData(originalData); //<-- Here's the important part

    artistWorkbook.addWorksheet(albumList);

    //artistWorkbook.generateFiles();

    var data = Excel.createFile(artistWorkbook);
    var result = new Buffer(data, 'base64');
     res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64');
  res.setHeader('Content-Disposition', 'attachment; filename=' + 'demo.xlsx');
  res.end(result);

Please support complex SharedStringItem.

I would like to create data as

["Simple Text", {values: [
    {
         "value": "Complex",
          "size": 12,
          "bold": true,
          "color": "#ff0000"
    }, 
    { 
          "value": "Text",
           "size": 18,
           "color": "#0000ff"
    }        
]}]

based on Open XML definition https://msdn.microsoft.com/en-us/library/office/gg278314.aspx

Result should be

<si>
        <t>Simple Text</t>
</si>
<si>
        <r>
            <rPr>
                <sz val="12"/>
                <color rgb="FF00000"/>
                <bold/>
            </rPr>
            <t>Complex</t>
        </r>
        <r>
            <t xml:space="preserve"> </t>
        </r>
        <r>
            <rPr>
                <b/>
                <sz val="18"/>
                <color theme="0000FF"/>
            </rPr>
            <t>0000ff</t>
        </r>
</si>

http://officeopenxml.com/SSstyles.php

Upload to S3

Abiilty to generate sheet and upload to S3 and generate download link to file

Please update documentation

I spent 3 hours of my time to by searching in in your documentation how can I assign default font size.

Excel default font size is 11.

Finally I found in you hard coded default font setting and now expose to user.

StyleSeet.js line #28

this.fonts = [{}];

Workaround I have in my code

var wb = Excel.createWorkbook();
var stylesheet = wb.getStyleSheet();
stylesheet.fonts[0].size = 12;

Please update your documentation for other customers how to override default font settings.
Or better as accept argument in your constructor.

Control Default cell height/width

Excel handle default cell with and height definition:

from your library XML definition its missing.

I modified Worksheet.js line 374

var sheetFormatPr = util.createElement(doc, 'sheetFormatPr');
  sheetFormatPr.setAttribute('baseColWidth', 11);
  sheetFormatPr.setAttribute('defaultRowHeight', 15);
  worksheet.appendChild(sheetFormatPr);


  if (this.columns.length) {
     worksheet.appendChild(this.exportColumns(doc));
  }
  worksheet.appendChild(sheetData);

Now XML Table including my ss:DefaultColumnWidth

But ss:DefaultRowHeight still default. Please can you look and fix it. Plus add into Worksheet constructor dynamic options.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.