GithubHelp home page GithubHelp logo

Comments (9)

sureshputtur avatar sureshputtur commented on June 16, 2024 1

Rather than converting the file to base64 convert to blob object . It will work.

from jquery-table2excel.

lanyudhy avatar lanyudhy commented on June 16, 2024

I have encountered this question few days ago. Did you resolve it ?
Please help.
Thanks.

from jquery-table2excel.

Edward-Shaw avatar Edward-Shaw commented on June 16, 2024

How to convert to blob object?
Would you please public your code?
Thanks,

from jquery-table2excel.

rainabba avatar rainabba commented on June 16, 2024

I want to emphasize again, that this entire approach is a hack. It's using a browser feature that's rarely used.

@sureshpoosapati Can you provide more info or a PR?

@Edward-Shaw The code is public. This issue is in the project. The actual code is at https://github.com/rainabba/jquery-table2excel/blob/master/src/jquery.table2excel.js

from jquery-table2excel.

sureshputtur avatar sureshputtur commented on June 16, 2024

var contentType = "application/vnd.ms-excel";
var byteCharacters = e.format(fullTemplate, e.ctx);
var byteNumbers = new Array(byteCharacters.length);
for (var i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
var byteArray = new Uint8Array(byteNumbers);
var blob = new Blob([byteArray], {type: contentType});
var blobUrl = URL.createObjectURL(blob);
//FILEDOWNLOADFIX END
a = document.createElement("a");
a.download = getFileName(e.settings);
a.href = blobUrl;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);

from jquery-table2excel.

rainabba avatar rainabba commented on June 16, 2024

I'll look at testing/integrating tomorrow. @sureshpoosapati or @tejas6jan If you can link me to a table I can test this against, which has been a problem in the past, that would be helpful.

from jquery-table2excel.

David3310273 avatar David3310273 commented on June 16, 2024

I've tried in firefox and it can download the large excel table, but failed in chrome, is that something wrong?

from jquery-table2excel.

sureshputtur avatar sureshputtur commented on June 16, 2024

Are you using latest jquery-table2excel plugin file. In latest there is a fix for large excel sheet. Check it once @David3310273

from jquery-table2excel.

bolla72892 avatar bolla72892 commented on June 16, 2024

How can i export the data into excel which is not in the table tag.please provide the solution.

how can i add div tags which are outside of the table tag into full template

from jquery-table2excel.

Related Issues (20)

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.