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
  #3  
Antiguo 14-07-2008
[egostar] egostar is offline
Registrado
 
Registrado: feb 2006
Posts: 6.572
Poder: 27
egostar Va camino a la fama
Hola

Yo usaría un DataMemo en lugar de un DataText y agregaría un Evento (OnBeforePrint) al DataMemo para determinar si el valor del campo contiene mas de 50 caracteres y saber si agrego o no una linea mas.

Código Delphi [-]
{ Event for DataMemo1.OnBeforePrint }

function DataMemo1_OnBeforePrint(Self: TRaveDataMemo);

begin
  if length(DataView1DETALLEFACTURA.AsString) > 50 then
     DataMemo1.Height := 0.3;
  elseif length(DataView1DETALLEFACTURA.AsString) <= 50 then
          DataMemo1.Height := 0.15;
       else DataMemo1.Height := 0.3;
  end;
end OnBeforePrint;

Salud OS
__________________
"La forma de empezar es dejar de hablar y empezar a hacerlo." - Walt Disney
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

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Escanear Doble Cara, Doble Lector karenthyuliana Gráficos 2 11-04-2008 17:29:42
Cambiar posicion de rectangulo o Linea en RAVE Alexander Impresión 0 15-06-2007 15:52:51
mostrar fichero linea a linea torete_86 C++ Builder 4 30-01-2006 20:14:39
Traza linea por linea problemas zugazua2001 Varios 2 24-10-2005 08:16:32
¿Cómo borrar un grid sin tener que ir línea a línea? Isaac Varios 2 18-02-2004 16:13:14


La franja horaria es GMT +2. Ahora son las 22:37:26.


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