In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

variable line height treport

Xailer professional forum in English
Responder
Ron Broere
Mensajes: 44
Registrado: Dom Abr 19, 2009 10:01 am

variable line height treport

Mensaje por Ron Broere »

Dear Ignacio,
That I understand, but what I mean is 1 field that is sometimes short,
sometimes long. Therefore it will not always fit on 1 line in 1 column. It
should then automatically wrap around to 2 lines. But only when neccesary.
Do you know how to do that?
Ron,
COLUMN OF oReport ;
TITLE "Name" ;
DATA Customer->First, Customer->Last
Goes into two lines.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Ron Broere" <ronbroere@bbkm.nl> escribió en el mensaje
news:498fefdf$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> hello everybody,
>
> is it possible to have a variable height field in treport?
>
> key1 column with large amount column2
> of text too long for 1 line
> key 2 text is ok for 1 line column2
>
> Ronald Broere
>
>
>
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

variable line height treport

Mensaje por notengo »

Ron,
check if this helps:
COLUMN OF oReport ;
TITLE "My Field" ;
DATA MemoLine( FIELD->MyField, 50, 1), ;
DATA MemoLine( FIELD->MyField, 50, 2) ;
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

variable line height treport

Mensaje por notengo »

Ron,
check if this helps:
COLUMN OF oReport ;
TITLE "My Field" ;
DATA MemoLine( FIELD->MyField, 50, 1), ;
DATA MemoLine( FIELD->MyField, 50, 2) ;
Regards,
José Lalí­n
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

variable line height treport

Mensaje por ignacio »

Ron,
Try somethin like this:
COLUMN OF oReport ;
TITLE "Name" ;
DATA MemoLine( Field->Memo, 50, 1)
RUN REPORT oReport ON CHANGE ReportChange( oReport )
FUNCTION ReportChange( oReport )
LOCAL nLines, nFor
nLines := MlCount( Field->Memo, 50 )
IF nLines > 1
WITH OBJECT oReport
FOR nFor := 1 TO nLines
:StartLine()
:PrintAtCol( 1, MemoLine( Field->Memo, 50, nFor ) )
:EndLine()
NEXT
END WITH
ENDIF
RETURN NIL
Regards,
Note: Do it on the fly, maybe there is little mistake but I hope you will
get the idea.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Ron Broere" <ronbroere@bbkm.nl> escribió en el mensaje
news:49920d96$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Dear Ignacio,
> That I understand, but what I mean is 1 field that is sometimes short,
> sometimes long. Therefore it will not always fit on 1 line in 1 column. It
> should then automatically wrap around to 2 lines. But only when neccesary.
> Do you know how to do that?
>
>
> Ron,
>
> COLUMN OF oReport ;
> TITLE "Name" ;
> DATA Customer->First, Customer->Last
>
> Goes into two lines.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Ron Broere" <ronbroere@bbkm.nl> escribió en el mensaje
> news:498fefdf$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> hello everybody,
>>
>> is it possible to have a variable height field in treport?
>>
>> key1 column with large amount column2
>> of text too long for 1 line
>> key 2 text is ok for 1 line column2
>>
>> Ronald Broere
>>
>>
>>
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

variable line height treport

Mensaje por ignacio »

Ron,
Try somethin like this:
COLUMN OF oReport ;
TITLE "Name" ;
DATA MemoLine( Field->Memo, 50, 1)
RUN REPORT oReport ON CHANGE ReportChange( oReport )
FUNCTION ReportChange( oReport )
LOCAL nLines, nFor
nLines := MlCount( Field->Memo, 50 )
IF nLines > 1
WITH OBJECT oReport
FOR nFor := 1 TO nLines
:StartLine()
:PrintAtCol( 1, MemoLine( Field->Memo, 50, nFor ) )
:EndLine()
NEXT
END WITH
ENDIF
RETURN NIL
Regards,
Note: Do it on the fly, maybe there is little mistake but I hope you will
get the idea.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Ron Broere" <ronbroere@bbkm.nl> escribió en el mensaje
news:49920d96$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Dear Ignacio,
> That I understand, but what I mean is 1 field that is sometimes short,
> sometimes long. Therefore it will not always fit on 1 line in 1 column. It
> should then automatically wrap around to 2 lines. But only when neccesary.
> Do you know how to do that?
>
>
> Ron,
>
> COLUMN OF oReport ;
> TITLE "Name" ;
> DATA Customer->First, Customer->Last
>
> Goes into two lines.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Ron Broere" <ronbroere@bbkm.nl> escribió en el mensaje
> news:498fefdf$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> hello everybody,
>>
>> is it possible to have a variable height field in treport?
>>
>> key1 column with large amount column2
>> of text too long for 1 line
>> key 2 text is ok for 1 line column2
>>
>> Ronald Broere
>>
>>
>>
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder