Printing a DataTables table so thatonly Print button is seen in User Interface, haven't succeeded...

Printing a DataTables table so thatonly Print button is seen in User Interface, haven't succeeded...

MichaelLandMichaelLand Posts: 26Questions: 0Answers: 0
edited June 2012 in General
Hello, is it possible to have only the Print button in User Interface when printing a DataTables table using DataTables plugin?

I have tried everything to get only the Print button to UI but allways PDF, Excel etc buttons comes there.
I found a discussion in following URL but couldn't get it working so that only Print button could be seen.

http://datatables.net/forums/discussion/6484/solved-getting-only-print-button./p1

Can anyone please give me information how to do this or a sample where is only one Print button which shows PrintPreView and then accepts user to print Datatable from Browser?

Thank you,

Best Regards

Michael

Replies

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin
    Hi Michael,

    You can use the aButtons option of TableTools to do that: http://datatables.net/release-datatables/extras/TableTools/alter_buttons.html

    Allan
  • MichaelLandMichaelLand Posts: 26Questions: 0Answers: 0
    Hello and thanks Allan,

    How about then if I want to change e.g. word in button 'Print' to other language e.g. German or French, is that possible?

    Br

    Michael
  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin
    The "Button text alteration" example covers that: http://datatables.net/release-datatables/extras/TableTools/button_text.html .

    The full set of examples and documentation can be found here: http://datatables.net/extras/tabletools/examples

    Allan
This discussion has been closed.