Ver Mensaje Individual
  #1  
Antiguo 20-11-2010
ingcarolinae ingcarolinae is offline
Registrado
NULL
 
Registrado: oct 2010
Posts: 7
Reputación: 0
ingcarolinae Va por buen camino
Wink como poner invisible un masterdata cuando va imprimir?

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.
Responder Con Cita