Button excel and pdf on multiple table on the same page
Button excel and pdf on multiple table on the same page
![jfr](https://secure.gravatar.com/avatar/2e816772ec8a025f3e0caf7ff50c43f0/?default=https%3A%2F%2Fvanillicon.com%2F2e816772ec8a025f3e0caf7ff50c43f0_200.png&rating=g&size=120)
in TableTools
Hi
I am using datatables 1.10.6
I have an application with 3 datatables on the same html page
All of them have buton for excel and pdf but only the first on has the code for the shockwave-flash on it
Is there something special to define when using more then 1 datatables with tableTools extention
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Can you link to the page showing the issue please.
As far as I am aware this should work, but it is quite possible there is a bug here.
Allan
Thank you for the link you sent by e-mail. The issue is that only the first table is visible when it is loaded. The other tables are hidden in tabs, which mean that they don't have any height or width and the Flash movie that TableTools uses cannot be sized to fit the tab.
The fix is to use the
fnResizeButtons
method whenever a tab is made visible. That will let the Flash buttons be resized to fit. There are a number of discussions about this in the forum if you search forfnResizeButtons
.Another option is to update to the new Buttons extension with its HTML5 export options which do not require Flash.
Allan
Thanks for the help
And I will check the HTML5