Export Div Data to Excel along with Image not working using "Table2Excel" Js

Export Div Data to Excel along with Image not working using "Table2Excel" Js

kinjankinjan Posts: 2Questions: 1Answers: 0
edited August 2020 in Free community support

Hello,
Hope you are doing well.
I am using this functionality in ASP.net MVC.
I want to export my div content to excel along with images.
I had implemented "Table2Excel" js for the export purpose. but won't able to export an image that contains in the div section apart from the image I got all the details properly. but I am looking for some solutions where I can bind images in excel as well.
if you have any ideas or properties then please let me know.

The code is as below:

$("#btnExcel").click(function (e) {    
    $("#ExportEmployeeTable").table2excel({
        exclude: ".noExl",
        filename: "ListOfEmployees.xls",
        exclude_img: true,
        preserveColors: true
    });
 });

ExportEmployeeTable is my DIV ID I which my table and images took place. and I want to export all the data which contain in this

Section.

Div Content Data As follow:

--Table Data Goes Here----
image

Thank you in advance.
waiting for your reply.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

  • kinjankinjan Posts: 2Questions: 1Answers: 0

    Hy @colin
    Thanks for update
    but I am still looking for solutions that work for me to resolve the issue.

This discussion has been closed.