title: Why crystal report prompting me for parameter field value while I have written code for it
body: <p>Why crystal report prompting me for parameter field value while I have written code for it.</p>
  
  <pre class="lang-java prettyprint-override"><code>Private void ReportVeiwer_Load(object sender, EventArgs e)
  {
      ReportDocument reportdoc = new ReportDocument();
      ///string invoice_number = (;
      Invoice invoicerpt = new Invoice();
  
      ParameterField paramfield = new ParameterField();
      ParameterFields paramfields = new ParameterFields();
      paramfield.Name = "Invoice_Number";
      ParameterDiscreteValue dicval = new ParameterDiscreteValue();
      dicval.Value = User_Info.invoice_number;
      paramfield.CurrentValues.Add(dicval);
      paramfields.Add(paramfield);
  
      ReportVeiwer rptveiwer = new ReportVeiwer();
      rptveiwer.crystalReportViewer1.ParameterFieldInfo = paramfields;
  
      reportdoc.Load(@"D:\Furqan\SchoolManagementSystem\SchoolManagementSystem\Invoice.rpt");
      crystalReportViewer1.ReportSource = reportdoc;
      reportdoc.SetDatabaseLogon("PC-Name/User", "Password", ".", "Database");
  }
  </code></pre>