title: Crystal report missing parameter values when export
body: <p>When I ran my crystal report, I run into an error where its shows missing parameter values</p>
  
  <p>Below is my code</p>
  
  <pre><code>_crAdviceRpt.Load("C:\Users\whatever\AD_AdviceTemplate.rpt")
  
   Dim ds As ADDataset = New ADDataset
      Dim dt As DataTable = ds.Tables.Add("ADDatatable")
      dt.Columns.Add(New DataColumn("strLinesList", Type.GetType("System.String")))
  
      Dim dr As DataRow
      dr = dt.NewRow
      dr("strLinesList") = strLine
      dt.Rows.Add(dr)
  
      _crAdviceRpt.SetDataSource(ds.Tables(1))
  
      CrDiskFileDestinationOptions.DiskFileName = "location.pdf"
      CrExportOptions = _crAdviceRpt.ExportOptions
      With CrExportOptions
          .ExportDestinationType = ExportDestinationType.DiskFile
          .ExportFormatType = ExportFormatType.PortableDocFormat
          .DestinationOptions = CrDiskFileDestinationOptions
          .FormatOptions = CrFormatTypeOptions
      End With
      _crAdviceRpt.Export()
  
      If Not _crAdviceRpt Is Nothing Then
          _crAdviceRpt.Close()
          _crAdviceRpt.Dispose()
          _crAdviceRpt = Nothing
      End If
  </code></pre>
  
  <p>In my dataset, it does like this:
  ADDDataset.xsd-> ADDatatable -> strLinesList 
  strLinesList is my column over here</p>
  
  <p>In crystal report designer, I drag the strLinesList over to my .rpt</p>
  
  <p>I'm not sure what is wrong but I'm pretty sure that something is missing in my code, so anyhere is appreciated</p>