Customize export to excel button

Customize export to excel button

markouvmarkouv Posts: 2Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: I need to customize the button export to excel and add some images to the exported file. Has anyone managed to achieve that?

Answers

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

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

    Cheers,

    Colin

  • markouvmarkouv Posts: 2Questions: 1Answers: 0
    edited April 2021

    How can i add an image (company logo) before the datatable when I export the data to excel? Is there any sample code? I don't understand how to use striphtml in this case. I need to display the image not only the URL to the image.

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

    As Allan said in that thread:

    The first set would be to read through the Open Spreadsheet specification to understand how images should be embedded into such a file. You could also create an XLSX file and inspect its raw XML and file structure to understand how Excel itself does it.

    It's not something we've done, so it would need that kind of investigation.

    Colin

This discussion has been closed.