title: Parameter with wrong size
body: <p>We have a system in Delphi 2007 and we use the <code>TCrpe</code> component to print reports made in Crystal Reports 2008 (<code>.rpt</code> files). Works normally as follows in the code below:</p>
  <pre><code>vImpressora := '\\DEV-01\HP LaserJet Professional P1102w';
  with DM.Crystal do begin
    CloseEngine;
    ReportName := 'Comprovante.rpt';
    ParamFields.Items[0].CurrentValue := 'Empresa XYZ Ltda';
    Printer.Name := vImpressora;
    Print;
  end; 
  </code></pre>
  <p>But now we need to convert the system to Delphi 10. In the above code, <code>CurrentValue</code> simply stopped working. When the system runs the command <code>ParamFields.Items[0].CurrentValue := 'XYZ Company All';</code> an error is generated:</p>
  <blockquote>
  <p>Parameter has invalid structure size</p>
  </blockquote>
  <p>I've looked through several sites/forums for a solution to the problem, but couldn't find it. It makes no sense. The parameter within the report is a type parameter that prints the report title and logically is of type String.</p>