Drawing two frames

edited March 2018 in FastReport 4.0
Hi all,

For drawing frame (Columns) I have a header band, an overlay band and footer band and I use this code in the OAP of the page and all it's ok as shown in my capture:

procedure draw_columns;
var
  idx:integer;
  obj:TfrxView;
begin
  for idx:=0 to header.objects.count-1 do
  begin
    obj:=TfrxView(header.objects[idx]);
    if obj.tagstr='COLUMN' then
    begin
      with TfrxShapeView.create(body) do
      begin
        left:=obj.left;   
        top:=header.height;  
        width:=obj.width;            
        height:= engine.pageheight-header.height-footer.height-400;
      end;
    end;                                  
  end;       
end;


procedure Page1OnAfterPrint(Sender: TfrxComponent);
begin
   draw_columns  
end;

I need to draw a second frame just under the first as in my attached capture how to do that please ?
Thanks for the help

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.