Please help me output pdf

Please help me output pdf

thanhdo49ththanhdo49th Posts: 3Questions: 0Answers: 0
edited July 2011 in TableTools
my code
i can't use button "copy", "csv", "xls", "pdf".
my script is below
please help me
Link my image: http://cC5.upanh.com/25.341.32501284.b8e0/untitled.jpg
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Demo









$(document).ready( function () {
$('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"aButtons": [
"copy", "csv", "xls", "pdf",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
}
} );
} );









Rendering engine
Browser
Platform(s)
Engine version
CSS grade




Trident
Internet
Explorer 4.0
Win 95+
4
X


Trident
Internet
Explorer 5.0
Win 95+
5
C




Rendering engine
Browser
Platform(s)
Engine version
CSS grade








[/code]

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    you need to set "sSwfPath" and install the Adobe swf file from the TableTools package
  • thanhdo49ththanhdo49th Posts: 3Questions: 0Answers: 0
    i set "sSwfPath": "media/swf/copy_cvs_xls_pdf.swf" but it isn't run
    You have code demo. Can you send for me?
    thank you very much.
    my email: thanhdo49th@gmail.com
  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Well there is an example here: http://datatables.net/release-datatables/extras/TableTools/index.html . Are you seeing any errors in your server error log (404 errors most likely).

    Allan
  • thanhdo49ththanhdo49th Posts: 3Questions: 0Answers: 0
    i did it. thanks very much
This discussion has been closed.