Open AliveDD opened 8 years ago
i dont know how it resolve, i make some duct tape make shadow div, for temp table content
If you can provide a jsFiddle example or such, I could check it out. Without seeing your markup, I can't really say what might be happening.
im try today
fileext, exclude_img, exclude_links — Not working
fileext
not work, but im rename extension manually to .xls for test
try js file from dist instead of src. src does not include the exclude img functionality.
dist file dont help us im edit /demo file, and include input, link, and img Exporting don't remove this
html:
xls:
Sorry, this is the dist file you need. https://github.com/rainabba/jquery-table2excel/blob/8bbfca41abf4457200bca96134d8b756d3d56837/dist/jquery.table2excel.js
Apparently the latest commit removed the exclude feature.
set the extension of the excel to .xls instead of .xlsx should works.
with .xlsx we are get error
I'm using the last dist file and I have changed this lines:
$(o).find("tr").not(e.settings.exclude).each(function (i,o) { tempRows += "<tr>" + $(o).html() + "</tr>"; });
for:
$(o).find("tr").not(e.settings.exclude).each(function (i,o) { if(e.settings.exclude_img){ $(o).find('img').remove(); } if(e.settings.exclude_links){ $(o).find('a').contents().unwrap(); } tempRows += "<tr>" + $(o).html() + "</tr>"; });
That solves the problem with images and links.
It did not work for me :(
@mparini2107 you can download my whole file from here: https://raw.githubusercontent.com/ezequielprieto/jquery-table2excel/master/dist/jquery.table2excel.js
@ezequielprieto 404 not found
@rainabba - Me too having issue with including/displaying images on my table to an excel. I am using dist ver 1.1.1. Do you have demos or examples how to do this? Thanks!
@mparini2107 sorry for the delay here is a pastebin of the correct file https://pastebin.com/M5EAGTYd
@rdmordido this fix works fine for me.
i use t2e with this settings:
but image boxes are included:
whats wrong?