Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 28-04-2004
davidgaldo davidgaldo is offline
Miembro
 
Registrado: nov 2003
Posts: 220
Poder: 21
davidgaldo Va por buen camino
encabezado y pie de página en qreport

Hola , como puedo hacer, para que aparezca el encabezado y el título sólo en la 1ª página y el pié de página en la última.
Responder Con Cita
  #2  
Antiguo 28-04-2004
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Poder: 25
__cadetill Va por buen camino
Sacado de la ayuda de Delphi

Cita:
Empezado por Delphi Help
type TQRBandType = (rbTitle, rbPageHeader, rbDetail, rbPageFooter, rbSummary, rbGroupHeader, rbGroupFooter, rbSubDetail, rbColumnHeader, rbOverlay, rbChild)

property BandType : TQRBandType

Applies to

TQRCustomBand, TQRSubDetail, TQRBand, TQRChildBand, TQRGroup

Description

BandType is used to identify the role of a band in the report. Some band types are reserved for special components and should not be used.

BandType Description
rbTitle ----> Printed on the first page of the report after the page header
rbPageHeader ----> Printed on top of each page. Printing on the first page can be switched off with the Options property
rbDetail ----> Printed once for every record/row in the connected dataset
rbPageFooter ----> Printed at the bottom of each page. Printing on the last page can be switched off with the Options property
rbSummary ----> Printed after all detail bands and potential group footers at the end of the report.
rbSubDetail ----> Reserved for use by the TQRSubDetail component. Do not set this band type manually
rbColumnHeader ----> Printed a the top of each column on every page in a multi column report. Printed once after the page header in a single column report
rbGroupFooter ----> Footer band for TQRGroup or TQRSubDetail components. Printed when the group breaks or all detail bands have been printed for the TQRSubDetail
rbGroupHeader ----> Header band for TQRGroup or TQRSubDetail components. Printed before any detail bands for a given group or TQRSubDetail
rbOverlay ----> Included for backwards compatibility with QuickReport version 1. Do not use this band type
rbChild ----> Reserved for use by the TQRChildBand component. Do not set this band type manually
Como la de pie de pagina siempre se imprime, puedes controlar su impresión de la siguiente manera:

En el BeforePrint del Report inicializas la propiedad Enabled a false de la banda rbPageFooter .
Pones una banda rbSummary (diminuta, que no contenga nada) que sólo se imprime al final de los detalles y, en el BeforePrint de la bada pones la propiedad Enabled a true de la banda rbPageFooter.

Con esto controlas que sólo se imprima en la última página

Espero te sirva
Responder Con Cita
Respuesta



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 10:13:13.


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