Suppress printing of blank lines

edited 12:56PM in FastReport 4.0
Hello

I use FastReport 4.11.1 as a front end to a database. A databand accesses a table with 7 rows. These 7 lines are all filled with data. But the expression I need only the rows 2,3,5 and 7
Under the databand is a text box with the contents:

[IIF ((<AE.Gruppenergebnis."Nr"> <> 1) AND
(<AE.Gruppenergebnis."Nr"> <> 4) AND
(<AE.Gruppenergebnis."Nr"> <> 6), <AE.Gruppenergebnis."Bezeichnung"> + ' ' + <AE.Gruppenergebnis."Wert.Wert">,'')]

The report is to be printed on a sticker with a barcode. But there are always all 7 lines printed, the 1,4,6 without content.
How can I prevent or suppress the printing of blank lines?

Please excuse my bad english

Greeting Ronald

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:56PM
    you should always delete in reverse order
    procedure mytextobjectnameOnAfterData(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.