XLS, PDF buttons not working

XLS, PDF buttons not working

dhyaneshdhyanesh Posts: 30Questions: 8Answers: 0

Hello,

I have added TableTools to my php. I see PDF and XLS buttons visible on my page but when I click them, nothing happens. Please help what I might be missing.

Below is my code:

$(document).ready(function() { $('#example').dataTable( { "dom": 'T<"clear">lfrtip', "oTableTools": { "sSwfPath": "/scripts/copy_csv_xls_pdf.swf", "aButtons": [ "xls", { "sExtends": "pdf", "sPdfOrientation": "landscape" }] } }); }); <?php $result = mysql_query("SELECT * FROM tbl_test"); while($row = mysql_fetch_array($result)) { echo "<tr class='odd gradeX'> " . $row['DateTime'] . " " . $row['Carrier'] . " " . $row['EmailAdd'] . " " . $row['Comments'] . " "; } ?>
Date/Time Carrier Email Address Comments

Thank you for your help.

Answers

  • dhyaneshdhyanesh Posts: 30Questions: 8Answers: 0

    Hello,

    Any assistance or pointers to documentation to resolve the issue will be helpful.

    Thank you.

This discussion has been closed.