title: How to print Multiple .HTML documents in vb.net
body: <p>My application creates multiple .html documents( bills ). i need them to send it to a printer. i used following code. </p>
  
  <pre><code>For Each row As DataGridViewRow In dgvPrintList.SelectedRows
      If (File.Exists(row.Cells("FileName").Value.ToString)) Then
          Dim wbPrintTemp As New WebBrowser
          wbPrintTemp.Url = New Uri(String.Format("file:///{0}", row.Cells("FileName").Value.ToString))
          wbPrint.Print()
      End If
  Next
  </code></pre>
  
  <p>I have more than 100 documents in the loop, it won't send all of them to printer. it sends 50 or 55 or sometimes 60. 
  Can someone help me here. </p>
  
  <ol>
  <li>should i have to wait till the document gets loaded into the web
  browser? if yes how to use document loaded event?. </li>
  <li>how to wait till the printer completes the printing?</li>
  </ol>