TableTools - Excel export extension name
TableTools - Excel export extension name
mylok
Posts: 8Questions: 0Answers: 0
The TableTools work great for me, the only problem is when I hit save for excel it show Save as type : All Files(*.*), how can I save as .xls file? Thanks.
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
$('#example').dataTable( {
"sScrollX": "100%",
"sDom": 'CT<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/swf/copy_cvs_xls_pdf.swf",
"aButtons": [ "copy",
{
"sExtends": "xls",
"sFileName": "TableTools.csv",
"bFooter": false
},
{
"sExtends": "pdf",
"sFileName": "TableTools.csv"
}
]
},
"aaSorting": [[1,'asc']],
"sPaginationType": "full_numbers",
"bStateSave": true
} );
} );
[/code]
[code]
...
"sFileName": "TableTools.csv",
...
[/code]
use
[code]
...
"sFileName": "*.xls"
...
[/code]