Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you just looking to get the buttons to look the same? The Print, PDF and Excel buttons are easy to add with this plugin.

    • This reply was modified 6 years, 2 months ago by brchiz.
    Thread Starter markyeoj

    (@markyeoj)

    Yes, I want to have the excel, print and pdf buttons. How can I do it?

    Here is the support documentation that explains this feature. It’s in the Table Tools section when creating or editing a table:

    https://wpdatatables.com/documentation/table-features/table-tools/

    Thread Starter markyeoj

    (@markyeoj)

    That is a different plugin sir.

    But anyway, I managed to have Print and Excel buttons, but no PDF button.

    [wp-datatable id="ProjectTable" fat="1"]
        responsive: true,
    	dom: 'Bfrtip',
    	buttons: [
                 'excel', 'pdf', 'print'
            ]
    [/wp-datatable]
    • This reply was modified 6 years, 2 months ago by markyeoj.
    • This reply was modified 6 years, 2 months ago by markyeoj.

    Sorry about that, I have the WPdatatables plugin and this is the support forum linked from the plugin page in my WordPress installation!

    Thread Starter markyeoj

    (@markyeoj)

    Done, I just added these scripts on my website and everything works great.

    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>

    and used the following code.

    [wp-datatable id="ProjectTable" fat=1]
        responsive: true,
        dom: 'Bfrtip',
    	buttons: [
                 'excel', 'print',
               {
                    extend: 'pdfHtml5',
                    orientation: 'landscape',
                    pageSize: 'LEGAL'
                } 
            ]
            
            
    [/wp-datatable]
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Print, PDF Download, and Import to Excel buttons’ is closed to new replies.