title: how to pass value in textfield in crystalreport from textbox in vb.net
body: <p>I want to have one field in my crystal report in vb.net, I want to display in this textfield is the value of textbox in vb.net form.</p>
  
  <p>I made parameters named "prog_user" and set the value of this to the textbox.text but it doesn't display anything. </p>
  
  <p>heres my code I put it on report_viewer_shown events in vb.net</p>
  
  <pre><code>Dim crpath, filepath As String
  
  
  
          Private Sub rpt_viewer_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown               
  
                         cryrpt = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
                          crpath = "D:\LEGAL\NLRC_new_022213\NLRC"
                          filepath = crpath &amp; "\Legal Records.rpt"
                          cryrpt.Load(filepath)
  
                          cryrpt.RecordSelectionFormula = "{Command.CaseNo} = " &amp; case_no
                          crviewer.ReportSource = cryrpt
  
                          Legal_Records1.SetParameterValue("prog_user", textbox1.text)
                          crviewer.Refresh()
  
  end sub
  </code></pre>
  
  <p>what might be the problems if this? the other data in my crystal report display the correct value from the database.</p>