title: Is it (now) possible to print multiple copies with window.print()
body: <p>I need to print receipts in my web app for my users. 
  So far so good.
  But I also need to print a copy of the receipt which is in every way in the same format as the first receipt. That's why I'd like to set the number of copies to 2.</p>
  
  <p>Through my research, I came to realize that it's not possible through JavaScript but all the post I read were very old. </p>
  
  <p>I tried to call my function twice in a Chrome browser set to kiosk mode like this:</p>
  
  <pre><code>public printCoupon(): void {
      const mywindow = window.open('', 'PRINT', 'height=200px,width=200px');
  
      mywindow.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;');
      mywindow.document.write('&lt;/head&gt;&lt;body style="width:300px;height:200px"&gt;');
      mywindow.document.write('&lt;div style="width: 100%;display: flex;justify-content: space-between; flex-direction: row;"&gt;');
      // ...
      mywindow.document.close(); // necessary for IE &gt;= 10
  
      mywindow.focus(); // necessary for IE &gt;= 10*/
      mywindow.print();
      mywindow.close();
  
  
      public print(): void {
          let numberOfCouponsToPrint = 2;
          while (numberOfCouponsToPrint &gt; 0) {
            this.printCoupon();
            numberOfCouponsToPrint--;
          }
  </code></pre>
  
  <p>But without success.</p>
  
  <p>If I missed something or you know any workaround, please let me know.</p>