About tabletools xls and pdf

About tabletools xls and pdf

commediacommedia Posts: 21Questions: 5Answers: 0
edited September 2016 in TableTools

Hi!
I'm using datatables 1.9.
On my local environment all is ok. I can export xls and pdf, copy and print my table.
On line I can only print and copy.
So, I have read some answers for this question, but I don't understand what's the matter.
Thanks
Pat

Answers

  • allanallan Posts: 61,450Questions: 1Answers: 10,055 Site admin

    I'm afraid DataTables 1.9 is no longer supported. Moreover TableTools is also legacy software, having been replaced by Buttons. I would suggest updating to DataTables 1.10 and Buttons.

    Allan

  • commediacommedia Posts: 21Questions: 5Answers: 0

    Hi Allan!
    Yes I know it's an older release. I have already used datatables 1.10 and buttons but in this site I have 1.9. and in local environment all is ok! So I hope it's a little problem :-)
    isn't it?
    Pat

  • allanallan Posts: 61,450Questions: 1Answers: 10,055 Site admin

    So I hope it's a little problem :-)

    Without a test case, I can't say. However, as I say, 1.9 is no longer supported, so even with a test case there wouldn't be much I can do.

    Allan

  • commediacommedia Posts: 21Questions: 5Answers: 0

    Hi Allan!
    I change the name of pdf or cvs as follow:

    "aButtons": [
                {
                    'sExtends':'csv',
                    "sFileName": "<?php echo $lista_nome.'.csv'; ?>",
                    "sButtonText": "Excel",
                    'mColumns':[0,1]
                },
                {
                        'sExtends':'pdf',
                        "sFileName": "<?php echo $lista_nome.'.pdf'; ?>",
                        'mColumns':[0,1] 
                },
    

    and file name was ***prova.pdf with *** bad character for a file name.
    So now it's all right!
    Pat

This discussion has been closed.