Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Impresión
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 14-05-2004
Avatar de apicito
apicito apicito is offline
Miembro
 
Registrado: may 2003
Ubicación: Ourense
Posts: 341
Poder: 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
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 13:37:01.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi