Comments (9)
Rather than converting the file to base64 convert to blob object . It will work.
from jquery-table2excel.
I have encountered this question few days ago. Did you resolve it ?
Please help.
Thanks.
from jquery-table2excel.
How to convert to blob object?
Would you please public your code?
Thanks,
from jquery-table2excel.
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.
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.
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.
I've tried in firefox and it can download the large excel table, but failed in chrome, is that something wrong?
from jquery-table2excel.
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.
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)
- Planning an update to this project HOT 1
- Problem using this plugin combined with SharePoint Framework
- Css doesn't work HOT 1
- Not An Issue - But Your Plugin Is Much More Efficient Than TableExport HOT 1
- when table content having phone no then excel sheet don't show it properly HOT 1
- 消除科学计数 HOT 1
- Doesn't export no error messages
- Can this plugin do AutoFilter (in spreadsheet)? HOT 1
- Issue with tags and bower HOT 2
- [display: none;] <- it had no effect.????? HOT 2
- Style not work in libreoffice
- How put 2 tables in line?
- xlsx file creation HOT 2
- Export table with pagination HOT 2
- Apply cell format to 'Text' HOT 2
- the format does not match the extension (office) HOT 2
- Nested Table issue
- How to export select rows,no unselected columns!
- can this plugin export excel with "border"?
- Uncaught SyntaxError: expected expression, got '<' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-table2excel.