sPdfMessage doesn't work

sPdfMessage doesn't work

marwyndmarwynd Posts: 3Questions: 0Answers: 0
edited February 2011 in TableTools
I'm setting the message but I don't find it in the pdf document.
Here is my code:
oTable = $('#tabella').dataTable( {

"sDom": 'lfrtip<"clear spacer">T',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfMessage": "Your custom message would go here.",
"sFileName": "Prova.pdf"
}
],
"sSwfPath": "/common/js/table_tools/swf/copy_cvs_xls_pdf.swf"
},

"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Tutti"]],
"iDisplayLength": 10,
"aaSorting": [[ 7, "desc" ]],
"aoColumnDefs": [
{ "sClass": "center", "aTargets": [ 4,6,7 ] }
],
"aoColumns": [
// columns ...
] } );

});

The filename is correctly changed but in the pdf there is no custom message ... :(
What is wrong?

Replies

  • allanallan Posts: 61,609Questions: 1Answers: 10,089 Site admin
    edited February 2011
    Are you using the SWF that comes with TableTools 2.0.1, and TableTools 2.0.1 Javascript itself?

    Allan
  • marwyndmarwynd Posts: 3Questions: 0Answers: 0
    Yes, I'm using the last version that I Have downloaded one week ago.
  • marwyndmarwynd Posts: 3Questions: 0Answers: 0
    Sorry ... I've checked it again and I found that my version was wrong ... it works now!

    Thank you :)
This discussion has been closed.