Buenos Noches.
estoy haciendo un informe que en ciertos meses el masterdata no tiene datos por consiguiente sale vació.
y necesito que si ese masterdata esta vació se pongan en un footer en visible:=false;
en el procedimiento beforeprint en código delphi,
procedure TDmRptAdenunapagina.frxReporteMaestroBeforePrint(
Sender: TfrxReportComponent);
begin
inherited;
if Dataset = nil then begin
TfrxFooter(frxreportemaestro.FindComponent('footer2')).visible:= false;
end;
end;
no funciona
y si utilizo
if frxreportemaestro.FindComponent('masterdata3') = nil then begin
TfrxFooter(frxreportemaestro.FindComponent('footer2')).visible:= false;
end;
end;
tampoco.
como puedo hacer el if ?
Muchas Gracias por la ayuda.
