我一直试图在 FastReport 的交叉表中隐藏行,但我找不到方法。
当我隐藏 MemoViews 时,它给我留下了一个空白空间,我不知道如何摆脱它。
这是代码:
procedure DBCross1OnPrintCell(Memo: TfrxMemoView; RowIndex, ColumnIndex, CellIndex: Integer; RowValues, ColumnValues, Value: Variant);
begin
if (cellindex = 1) and (rowindex = 1) then begin
memo.visible := false;
memo.height := 0;
end;
end;
procedure DBCross1OnPrintRowHeader(Memo: TfrxMemoView; HeaderIndexes, HeaderValues, Value: Variant);
begin
if (trim(memo.memo.text) = 'HORA') and ( HeaderIndexes[0] = 1 ) then begin
memo.visible:=false;
memo.height := 0;
end;
if (trim(memo.memo.text) = 'individual') then begin
memo.height := memo.height /2;
end;
end;