sPdfMessage doesn't work
sPdfMessage doesn't work
marwynd
Posts: 3Questions: 0Answers: 0
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?
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?
This discussion has been closed.
Replies
Allan
Thank you :)