Supressing blank lines

edited 9:00PM in FastReport 4.0
I'm writing a report which produces mailing labels, so I have name and several address fields on separate lines. How do I suppress lines where the field contents are blank, so that following lines close up without leaving vertical gaps ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:00PM
    you should always delete in reverse order

    procedure mLabelOnAfterData(Sender: TfrxComponent);
    var i: integer;

    begin
    for i := TfrxMemoView(Sender).Lines.Count - 1 downto 0 do
    begin
    if TfrxMemoView(Sender).Lines.Strings = '' then
    TfrxMemoView(Sender).Memo.Delete(i);
    end;
    end;

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.