title: how to load crystal report while button click using vb.net
body: <p>I have a code to load crystal report while clicking a button in vb.net but it gives load failed error please help me to solve this .</p>
  
  <p>my code is</p>
  
  <pre><code>Imports CrystalDecisions.CrystalReports.Engine
  Imports CrystalDecisions.Shared
  Imports System.Data
  Imports System.Data.SqlClient
  Public Class ClinicianListRpt
  
  Private reportDocument As New ReportDocument()
  Dim paramField As New ParameterField()
  Dim paramFields As New ParameterFields()
  Dim paramDiscreteValue As New ParameterDiscreteValue()
  Private Sub ClinicianListRpt_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles MyBase.Load
  
  End Sub
  
  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      CrystalReportViewer1.DisplayGroupTree = False
  
      reportDocument.Load("ClinicianList.rpt")
      CrystalReportViewer1.ReportSource = reportDocument
  
      CrystalReportViewer1.ReportSource = reportDocument
      reportDocument.SetDatabaseLogon("sa", "manager", "172.16.7.8", "SPEECH")
  End Sub
  End Class
  </code></pre>
  
  <p>thank you in advance</p>
  
  <p>geetha</p>