Suppress printing of blank lines
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
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
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;