title: Datatables.Buttons hide columns in printing and exporting to excel
body: <p>How can i hide the last column in printing and exporting to excel only but appear in the normal viewing</p>
  
  <p><a href="http://jsfiddle.net/andrew_safwat/qokbv1sj/" rel="noreferrer">http://jsfiddle.net/andrew_safwat/qokbv1sj/</a></p>
  
  <pre><code>$(document).ready(function () {
  
              $('#example').DataTable({
                  dom: 'Brtip',
                  buttons: [
                      {
                          extend: 'print'
                      },
                      {
                          extend: 'excel'
                      }
                  ]
              });
          });
  </code></pre>