This is the code I used to create a data table with export functionality.
oTable = $(\"#tblSearch\").DataTable({
\"jQueryUI\": true,
\"sPaginationType\"
Change the sSwfPath
to an absolute path.
"tableTools": {
"sSwfPath": "http://cdn.datatables.net/tabletools/2.2.3/swf/copy_csv_xls_pdf.swf",
"aButtons": ["xls"]
}
here using the dataTables CDN. The problem is, that the relative path messes up when you deploy to your IIS or whatever windows platform you are using. This is a very common problem.