title: How to Print sheet/range using .gs script in Google Sheets?
body: <p>I am trying to create a script in Google Sheets that select a range and print it. I am trying to print some information based on some parameters. I have the following script that sets the desired range, but I do not see a way to print it using script.</p>
  
  <pre class="lang-js prettyprint-override"><code>function printInvoice() {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getActiveSheet();
    var range = sheet.getRange("A1:H46");
  
    range.activate();
  }
  </code></pre>
  
  <p>Any suggestions? Thanks!</p>