title: How to remove footer on datatables print
body: <p>I'm using jQuery DataTables and TableTools 2.2.4 and this is the code lines I use to initialize datatables with multi-filter inputs and the flash export buttons.</p>
  
  <p>The problem is that I've been looking for the option to remove the footer of my table when user clicks on print button,  because the footer is the section where are each filter input elements so I don't want to let see those inputs to customers.</p>
  
  <p>I've tried to use the </p>
  
  <pre><code>'sExtends':'print','bFooter':false
  </code></pre>
  
  <p>but it doesn't work on print button, only with rest of the buttons it works.</p>
  
  <p><code>tbl_consultarEmpleados</code> is the id of my table.</p>
  
  <p>And do you know how to print the table automatically. I mean, when I click on print button it sends me to a preview so I want it to send me to the direct print action like in <a href="https://www.datatables.net/extensions/buttons/examples/print/customisation.html" rel="nofollow">this example</a>.</p>
  
  <pre><code>        $(document).ready(function() 
          {
              //from here I start the datatables with multi filter options
              $('#tbl_consultarEmpleados tfoot th').each( function () {
                  var title = $('#tbl_consultarEmpleados thead th').eq( $(this).index() ).text();
                  $(this).html( '&lt;input type="text" placeholder="Filtrar" /&gt;' );
              } );
              var table = $('#tbl_consultarEmpleados').DataTable();
  
              table.columns().every( function () {
                  var that = this;
  
                  $( 'input', this.footer() ).on( 'keyup change', function () {
                      if ( that.search() !== this.value ) {
                          that
                          .search( this.value )
                          .draw();
                      }
                  } );
              } );// from here I start the flash buttoms section
          var table= $('#tbl_consultarEmpleados').dataTable();
  
          var tableTools = new $.fn.dataTable.TableTools(table, 
          {
              'sSwfPath': '//cdn.datatables.net/tabletools/2.2.4/swf/copy_csv_xls_pdf.swf',
              dom: 'Bfrtip',
              'aButtons': ['csv','pdf',
              {
                  'sExtends':'print','bShowAll':false,'sButtonText':'Imprimir','autoPrint': true
              },
  
              {
                  'sExtends':'xls','sFileName':'*.xls','sButtonText':'Enviar a Excel'
              },
  
              ],
  
          });
  
          $(tableTools.fnContainer()).insertBefore('#tbl_consultarEmpleados_wrapper')
  
      } );
  </code></pre>
  
  <p></p>