Issue with this code ( dataTables )

Issue with this code ( dataTables )

422422 Posts: 7Questions: 0Answers: 0
edited April 2011 in TableTools
I am using this code, and it just isnt working.
[code]

$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "portrait",
"sPdfMessage": "Stat Report"
}

]
}
]
}
} );
} );

[/code]

I was using:

[code]

$(document).ready( function () {
$('#inspections').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "tools/swf/copy_cvs_xls_pdf.swf"
}
} );
} );

[/code]

Issue I have is I only want:

Print , Xls , PDF .
I also want a title on the PDF to dispaly.

But not getting anywhere.

Any help appreciated. Cheers

Replies

  • 422422 Posts: 7Questions: 0Answers: 0
    The first code, crashes our Browser, not sure why.

    We click Save.
    Screen dims,
    dropdown menu appears.
    We click PDF

    Computers Save Window opens, and freezes.

    Have tested on 3 PC's in our office, and we have ADSL2+

    So am figuring its an issue with our code.

    Cheers
This discussion has been closed.