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
[-]
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