title: How To Set Textbox1 Value Into Formula Field Of Cystal Reports
body: <p>I want to set textbox1 value into formula field of crystal reports and Utilise the same value into crystal reports.</p>
  
  <p>Suppose my Textbox1 value is <strong>“12000”</strong> and I want to set it to formula field and utilize the same into crystal reports. Is it possible?. And yes then How?.</p>
  
  <p>Note: <strong>textbox1 located on top of CrystalReportviewer1.</strong></p>
  
  <h2>Solution</h2>
  
  <p>It is very simple just create the instance of the reports class and set the textBox value  in your crystalreportviewer source as under:</p>
  
  <pre><code>PLCrystReport plc = new PLCrystReport();
  plc.DataDefinition.FormulaFields["ttt"].Text = "" + textBox1.Text + ""; 
  </code></pre>
  
  <p>For above first you have to create the formula field in your crystal reports and set the above code then after copy your formula field to your crystal reports. It will shows the specified value of textbox into formula field.</p>
  
  <p>Note ["ttt"] is the formula field name. which provided into crystal reports.</p>