title: Add new fields using c # code to crystal report (rpt)
body: <p>I have a crystal report rpt report created with some fixed fields that fill with a datatable, the fields obtained in the datatable may vary depending on the SQL statement of the fields in a form. Therefore, the question is whether in the design of the rpt form I can add, by code, new fields obtained in the datatable. For example, in the datatable I get the First and Last Name fields, and I show them in the report (in the design I have inserted the First and Last Name fields). Now in the datatable I get Name, Surname and Telephone, if I call the same report, it will fill in only Name and Surname, the Telephone field, not being inserted in the report will not appear, the idea is to add it. I am filling the dataset in such a way:</p>
  
  <pre><code>DataSet ds = new dsDataSet();
  ds.Tables.Add(new DataTable());
      foreach (DataColumn column in dtBusqueda.Columns)
      {
          ds.Tables[0].Columns.Add(column.ColumnName);
      }
  </code></pre>
  
  <p>Now it would be those dataset fields to insert into the report as I explained before. The report is loaded as follows:</p>
  
  <pre><code>ReportDocument Report = new ReportDocument();
  Report.Load("../../crReporte.rpt");
  Report.SetDataSource(dtDataTable);
  frmReportes form = new frmReportes(Report);
  form.Show();
  </code></pre>
  
  <p>Thanks.</p>