title: Print rdlc without Preview
body: <p>Working on .rdlc to print directly (without preview) (Reference: <a href="https://stackoverflow.com/questions/12734277/print-a-reportviewer-without-preview/13974568#13974568">Print a ReportViewer Without Preview</a>). I am able to print directly to printer without opening ReportViewer. I am stuck in a weird situation. The above mentioned solution works well in Windows 7 but generates an error "Some parameters or credentials have not been specified" in Windows 10. This error is generated on </p>
  
  <pre><code>ReportPageSettings reportPageSettings = report.GetDefaultPageSettings();
  </code></pre>
  
  <p>I have tested the same code that works on Windows 7. Migrating to Windows 10 generates this error.</p>
  
  <p>I have tried
  1)</p>
  
  <pre><code>  Dim lrpt As New LocalReport()
          lrpt.ReportEmbeddedResource = "POS-Rest.Invoice.rdlc"
          Dim rds As New ReportDataSource("InvoiceDataSet", SelfDetailsBindingSource)
  
          lrpt.DataSources.Add(rds)
          lrpt.Refresh()
          lrpt.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence)
  
   Dim rpt As New ReportPrintDocument(lrpt)
  rpt.Print()
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>Dim rpt As New ReportPrintDocument(Me.ReportViewer1.LocalReport)
   rpt.Print()
  </code></pre>
  
  <p>Check the error screenshot
  !<a href="http://prntscr.com/nj4s49" rel="nofollow noreferrer">http://prntscr.com/nj4s49</a></p>