Página 1 de 1

variable line height treport

Publicado: Mié Feb 11, 2009 12:28 am
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
>
>
>

variable line height treport

Publicado: Mié Feb 11, 2009 12:47 am
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

variable line height treport

Publicado: Mié Feb 11, 2009 12:47 am
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

variable line height treport

Publicado: Mié Feb 11, 2009 10:10 am
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
>>
>>
>>
>
>
>

variable line height treport

Publicado: Mié Feb 11, 2009 10:10 am
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
>>
>>
>>
>
>
>