title: FASTREPORT Adding objects dynamically in report script
body: <p>I try to add TLineView objects to a report.
  The number of lines is depending on a certain number, retrieved by the reports dataset.</p>
  
  <p>I have put my code into the scripts initialization part and in a very experimental test version it looks like this:</p>
  
  <pre><code>var nol, i: integer;
  child, newChild: TfrxChild;
  noteLine1, noteLine2: TfrxLineView;
  page: TfrxPage;                                 
  begin
    page := ReportName;                                                                 
    nol := &lt;DS_MAIN."VOLUME"&gt; /2;
    nol := nol + &lt;DS_MAIN."VOLUME"&gt; mod 2;
    child3.child := TfrxChild.create(nil);
    newchild := child3.child;
    newChild.Visible := true;                                                        
    noteLine1 := TfrxLineView.create(newChild);
    noteLine1.name := 'nl1000';                                                
    noteLine1.Top := 0.73;
    noteLine1.Width := 7.5;
    noteLine1.Left := 3;
    noteLine1.Visible := true;                                                          
    noteLine1.Parent.Objects.Remove(noteLine1);                                                                                                     
    noteLine1.Parent.Objects.Add(noteLine1);                                                                                                     
  //  newChild.Objects.Add(noteLine1);
    noteLine2 := TfrxLineView.create(newChild);
    noteLine2.name := 'nl1001';                                                
    noteLine2.Top := 0.73;
    noteLine2.Width := 7.5;
    noteLine2.Left := 11.2;
    newChild.Objects.Add(noteLine2);                                                                                          
    noteLine2.Visible := true;                                                          
  
    for i := 1 to nol do begin
      Child := TfrxChild.create(nil);
      NewChild.child := Child;
      newChild := child;                                            
    end;
  end.
  </code></pre>
  
  <p>Instead of getting two lines side by side, with a gap between them, I get only a single short line of a length of around 3-4 mm.</p>
  
  <p>The above code is just a snap of my trial-and-error session.
  Hope now that there could be anyone to give me some clues.</p>