title: Steps to Pass parameters to crystal reports in C#
body: <p>Can you tell me what are the steps to pass parameters to crystal reports 13 in C# win form..</p>
  
  <p>my code:</p>
  
  <pre><code>        //getting and set dataset to report   
          string sql = "select * from dbo.Trading_Order";
          DataRetriever dr = new DataRetriever();
          dr.getValueFromCustomer(sql);
          DataTable dtSum = dr.getDataTable();
          dsMyReprt k = new dsMyReprt();
          k.Tables.Remove("dtMyTable");
          dtSum.TableName = "dtMyTable";
          k.Tables.Add(dtSum);
          CrystalReport1 myDataReport = new CrystalReport1();
  
          //pass parameter
  
          ParameterFields paramFields = new ParameterFields();
          // ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
  
          ParameterField paramField = new ParameterField();
          ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
          paramField.Name = "@DTotal";
          paramDiscreteValue.Value = tot;
          paramField.CurrentValues.Add(paramDiscreteValue);
          paramFields.Add(paramField);
  
          paramField = new ParameterField(); 
          paramDiscreteValue = new ParameterDiscreteValue(); 
          paramField.Name = "@name";
          paramDiscreteValue.Value = name;
          paramField.CurrentValues.Add(paramDiscreteValue);
          paramFields.Add(paramField);
  
          crystalReportViewer1.ParameterFieldInfo = paramFields;
  
          myDataReport.SetDataSource(k);
          crystalReportViewer1.ReportSource = myDataReport;
  </code></pre>
  
  <p>getting and set dataset part is working
  but passing parameters part is not working</p>