Skip to content
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

Excel(.xlsx) Export #3685

Closed
Raghuram0106 opened this issue Aug 1, 2016 · 7 comments
Closed

Excel(.xlsx) Export #3685

Raghuram0106 opened this issue Aug 1, 2016 · 7 comments

Comments

@Raghuram0106
Copy link

Hi Team,

I have a query regarding handsontable. Does it support excel(.xlsx) file export?

Thanks
Raghu

@AMBudnik
Copy link
Contributor

AMBudnik commented Aug 1, 2016

Currently you are able to export the Handsontable as a .csv (it's read from Excel but it's not .xlxs).
This feature is already on our Roadmap https://trello.com/c/kdRiEcVp/16-export-to-xls-pdf-xml-html
You can vote for this feature if you would like it to be our next task.

@lucashtc
Copy link

Unfortunately it has not been added yet, but anyone viewing this issue helps by voting for a new feature.

@alisham3
Copy link

handsontable roadmap hasn't been updated in 3 months - do we know if it's even accurate?

@AMBudnik
Copy link
Contributor

Hi @alisham3

we are working on Zenhub now. The correct path to the project is https://app.zenhub.com/workspace/o/handsontable/handsontable/boards?repos=1790564,85198294

@alisham3
Copy link

alisham3 commented Aug 13, 2018 via email

@AMBudnik
Copy link
Contributor

We still use Trello to gather votes for features on the Backlog but I will ask our CTO to change the Info part.

@michelebarzan
Copy link

Here's what i did to export to .xls
`function xlsExport(hot,filename)
{
var colHeader=hot.getColHeader();
var data=hot.getData();

    var exportDiv=document.createElement("div");
    exportDiv.setAttribute("style","display:none");

    var exportTable=document.createElement("table");
    exportTable.setAttribute("id","hotExportTable");

    var tr=document.createElement("tr");
    colHeader.forEach(function(column)
    {
        var th=document.createElement("th");
        th.innerHTML=column;
        tr.appendChild(th);
    });
    exportTable.appendChild(tr);

    data.forEach(function(row)
    {
        var tr=document.createElement("tr");
        row.forEach(function(cell)
        {
            var td=document.createElement("td");
            td.innerHTML=cell;
            tr.appendChild(td);
        });
        exportTable.appendChild(tr);
    });

    exportDiv.appendChild(exportTable);
    document.body.appendChild(exportDiv);

    $("#hotExportTable").table2excel
    ({
        exclude: ".noExl",
        filename
    });

    document.getElementById("hotExportTable").remove();
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants