ONE BUTTO PRINT
ONE BUTTO PRINT
lauromneto
Posts: 129Questions: 0Answers: 0
Good afternoon.
I managed to generate the XLS and PDF generation of 2 datatables in 1 single file.
Would anyone know to say, how to make the print (print button) perform the same task!? In other words, using a single PRINT button to print 2 datatables!
This discussion has been closed.
Replies
sorry, I don't have an answer for you, but can you share your XLS/PDF code? I am needing to do that as well.
ahhh.. sorry, I saw your other post after I already posted this comment.
https://datatables.net/forums/discussion/63479/export-pdf#latest
Olá.
O código do PDF você já conseguiu pegar né?
Abaixo o código do XLS. Este tem que ser antes de inicializar a datatable:
Any information that can help me in this question of printing 2 tables in a single button?
Does anyone have any solution for this case !?
Sorry no - this is not currently possible in DataTables. We are looking at options to make it possible in future though.
Allan
Allan, good morning.
I used the same function to create 1 single pdf with 2 datatables, and it worked. However, when canceling the print window, the TAB does not close.
The function of generating 1 pdf with 2 datatables is above. Do you have any idea !?
Check for errors in your browser's console.
Kevin
There is no mistake. No errors.
But I will resolve and post here for you.
------------- SOLVED -------------
HTML:
<iframe name="if1" id="if1" style="display:none"></iframe>
JAVASCRIPT: