Ver Mensaje Individual
  #2  
Antiguo 14-05-2004
Avatar de apicito
apicito apicito is offline
Miembro
 
Registrado: may 2003
Ubicación: Ourense
Posts: 341
Reputación: 24
apicito Va por buen camino
En evento onStartPage de reporte o del subreporte haz la siguiente selección:

Código:
procedure TSesActa.ResultStartPage(Sender: TObject);
var  lPage: TppPage;
begin
  lPage := Result.Engine.Page;
  if (Result.AbsolutePageNo mod 2 = 0) then
    begin
      lPage.PrinterSetup.Orientation:=poPortait;
      lPage.PrinterSetup.MarginTop := PPArriba.Value;
      lPage.PrinterSetup.MarginBottom := PPAbaixo.Value;
      lPage.PrinterSetup.MarginLeft := PPLado.Value;
    end
  else
    begin
      lPage.PrinterSetup.Orientation:=poLandscape;
      lPage.PrinterSetup.MarginTop := PIArriba.Value;
      lPage.PrinterSetup.MarginBottom := PIAbaixo.Value;
      lPage.PrinterSetup.MarginLeft := PILado.Value;
    end;
end;
En este caso estoy cambiando la configuración de la página dependiendo si es una página par o impar.
Responder Con Cita