Image export buttons (clipboard, pdf, excel)
Image export buttons (clipboard, pdf, excel)
Hello everyone
First I want to thank for DataTables. It's awesome.
My question has already been asked before, but long time ago. So my question is:
Is there any solution to export a datatable that includes images?
It doesn't matter if it's clipboard, excel or pdf. Are there any good examples of customisations?
Thanks
This discussion has been closed.
Answers
Hi @paz ,
This thread here will help, it discusses the same thing,
Cheers,
Colin
Ok. got it.
So it's easily possible to get the images visible within print view by using
stripHtml: falseBut it's not easy in pdfs and almost impossible in xlsx. Right?
Another question. If i use
var table = $('#data-table1').DataTable();var data = table.buttons.exportData( {columns: ':visible'} );I have the whole content of the visible datatable within data. Would it be possible to use data to create a pdf from it by using pdfmake?
Is it possible to send a message to print view, that will not be printed?
Hi @paz ,
Yep, you can disable
autoPrint, see the example here.On your other questions, it should be possible for the other formats, in that thread they report it can be, but not so straight forward and no-one had tried it! And the PDF export does use pdfmake already.
Hope that helps,
Cheers,
Colin