title: How to printing crystal report directly to network printer in Vb.net or C#.net in Windows Applications
body: <p>I have written the following code as,</p>
  
  <pre><code>        Dim report As New ReportDocument
          report.PrintOptions.PrinterName = "\\network\printer"
          report.Load(CrystalReportName.rpt, OpenReportMethod.OpenReportByDefault)
          report.PrintToPrinter(1, False, 0, 0)
  </code></pre>
  
  <p>when i am trying to run this code , it shows the error message as "Invalid Printer Specified". If i give the local printer name, it is working fine. But i can't able to print the crystal report directly to the network printer. Kind help needed. Thanks in advance.</p>
  
  <p>Sivakumar.P</p>