Ver Mensaje Individual
  #3  
Antiguo 02-03-2007
pabloajm pabloajm is offline
Registrado
 
Registrado: nov 2006
Posts: 2
Reputación: 0
pabloajm Va por buen camino
Cita:
Empezado por vdag83
He visto el problema que publicas en el foro y también tengo el mismo problema.
¿Resolviste tu problema? ¿Si es así podrías ayudarme?
Pues lo resolvi haciendo 5 bandas y cada una agrupa por un campo distinto, luego desde Delphi le envio por que campo quiero agrupar, y en rave hago un evento antes de imprimir:

{ Event for Band1.OnBeforePrint }

function Band1_OnBeforePrint(Self: TRaveBand);
begin
if Compare(Agruparpor.Text ,'campo1')=0 then banda1.visible:=true;
banda1foot.visible:=true;
else banda1.visible:=false;
banda1foot.visible:=false;
end if;
if Compare(Agruparpor.Text ,'campo2')=0 then banda2.visible:=true;
banda2foot.visible:=true;
else banda2.visible:=false;
banda2foot.visible:=false;
end if;
if Compare(Agruparpor.Text ,'campo3')=0 then banda3.visible:=true;
banda3foot.visible:=true;
else banda3.visible:=false;
banda3foot.visible:=false;
end if;
if Compare(Agruparpor.Text ,'campo4')=0 then banda4.visible:=true;
banda4foot.visible:=true;
else banda4.visible:=false;
banda4foot.visible:=false;
end if;
if Compare(Agruparpor.Text ,'campo5')=0 then banda5.visible:=true;
banda5foot.visible:=true;
else banda5.visible:=false;
banda5foot.visible:=false;
end if;
end OnBeforePrint;

y alli escondo las bandas que no me interesan y solo muestro la banda por la que quiero agrupar .
Responder Con Cita