Página 1 de 1

TReport:nLineHeight

Publicado: Dom Sep 17, 2006 9:50 am
por Ingo Junge-Herrmann
Hallo,
how to change the height of reportlines?
Assigning a greater value to oReport:nLineHeight doesn't work.
Regards
Ingo

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 10:26 am
por ignacio
Ingo,
Try to change the value on the OnInit event. BTW an easier way to do it is
to put an empty line on any of the columns:
COLUMN oCol DATA Dbf->Field1, ""
This code will print an empty row more after the data.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Hallo,
>
> how to change the height of reportlines?
>
> Assigning a greater value to oReport:nLineHeight doesn't work.
>
> Regards
>
> Ingo
>

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 10:26 am
por NoName
Ingo,
Try to change the value on the OnInit event. BTW an easier way to do it is
to put an empty line on any of the columns:
COLUMN oCol DATA Dbf->Field1, ""
This code will print an empty row more after the data.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Hallo,
>
> how to change the height of reportlines?
>
> Assigning a greater value to oReport:nLineHeight doesn't work.
>
> Regards
>
> Ingo
>

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 2:59 pm
por Ingo Junge-Herrmann
Ignacio,
thank you for the reply.
>Try to change the value on the OnInit event.
I did it before I posted here, but it didn't work.
>BTW an easier way to do it is
>to put an empty line on any of the columns:
>
>COLUMN oCol DATA Dbf->Field1, ""
>
>This code will print an empty row more after the data.
The half of the rowheight would be better.
I see there's nothing else for me but to do this workaround as long as the
property nLineHeight will be not really assignable yet.
Regards
Ingo
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>
>> Hallo,
>>
>> how to change the height of reportlines?
>>
>> Assigning a greater value to oReport:nLineHeight doesn't work.
>>
>> Regards
>>
>> Ingo
>>
>
>

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 2:59 pm
por Ingo Junge-Herrmann
Ignacio,
thank you for the reply.
>Try to change the value on the OnInit event.
I did it before I posted here, but it didn't work.
>BTW an easier way to do it is
>to put an empty line on any of the columns:
>
>COLUMN oCol DATA Dbf->Field1, ""
>
>This code will print an empty row more after the data.
The half of the rowheight would be better.
I see there's nothing else for me but to do this workaround as long as the
property nLineHeight will be not really assignable yet.
Regards
Ingo
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>
>> Hallo,
>>
>> how to change the height of reportlines?
>>
>> Assigning a greater value to oReport:nLineHeight doesn't work.
>>
>> Regards
>>
>> Ingo
>>
>
>

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 5:24 pm
por ignacio
Ingo,
> I see there's nothing else for me but to do this workaround as long as the
> property nLineHeight will be not really assignable yet.
Try this:
RUN REPORT oReport ON CHANGED oReport:NewLine( Int( oReport:nLineHeight /
2 ) )
Changing the value oReport:nLineHeight did not work due an error in the
class. Now is only calculated if its value is zero.
The report engine calculates the height necessary to print the complete data
row of all the columns, every colum may print more than one row and even use
different fonts on every row. So oReport:nLineHeight is just the standard
line height based on first font defined, but is not the height of every data
row. For this reason I recommend to use the expression above that will
always work, no matter how many lines are defined on every column and the
fonts they used.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:450e9820$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Ignacio,
>
> thank you for the reply.
>
>>Try to change the value on the OnInit event.
>
> I did it before I posted here, but it didn't work.
>
>>BTW an easier way to do it is
>>to put an empty line on any of the columns:
>>
>>COLUMN oCol DATA Dbf->Field1, ""
>>
>>This code will print an empty row more after the data.
>
> The half of the rowheight would be better.
>
> I see there's nothing else for me but to do this workaround as long as the
> property nLineHeight will be not really assignable yet.
>
> Regards
>
> Ingo
>
>>
>>Regards,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>
>>news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>>
>>> Hallo,
>>>
>>> how to change the height of reportlines?
>>>
>>> Assigning a greater value to oReport:nLineHeight doesn't work.
>>>
>>> Regards
>>>
>>> Ingo
>>>
>>
>>
>

TReport:nLineHeight

Publicado: Lun Sep 18, 2006 5:24 pm
por NoName
Ingo,
> I see there's nothing else for me but to do this workaround as long as the
> property nLineHeight will be not really assignable yet.
Try this:
RUN REPORT oReport ON CHANGED oReport:NewLine( Int( oReport:nLineHeight /
2 ) )
Changing the value oReport:nLineHeight did not work due an error in the
class. Now is only calculated if its value is zero.
The report engine calculates the height necessary to print the complete data
row of all the columns, every colum may print more than one row and even use
different fonts on every row. So oReport:nLineHeight is just the standard
line height based on first font defined, but is not the height of every data
row. For this reason I recommend to use the expression above that will
always work, no matter how many lines are defined on every column and the
fonts they used.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:450e9820$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Ignacio,
>
> thank you for the reply.
>
>>Try to change the value on the OnInit event.
>
> I did it before I posted here, but it didn't work.
>
>>BTW an easier way to do it is
>>to put an empty line on any of the columns:
>>
>>COLUMN oCol DATA Dbf->Field1, ""
>>
>>This code will print an empty row more after the data.
>
> The half of the rowheight would be better.
>
> I see there's nothing else for me but to do this workaround as long as the
> property nLineHeight will be not really assignable yet.
>
> Regards
>
> Ingo
>
>>
>>Regards,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>
>>news:450cfe43$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>>
>>> Hallo,
>>>
>>> how to change the height of reportlines?
>>>
>>> Assigning a greater value to oReport:nLineHeight doesn't work.
>>>
>>> Regards
>>>
>>> Ingo
>>>
>>
>>
>

TReport:nLineHeight

Publicado: Mar Sep 19, 2006 5:48 am
por Ingo Junge-Herrmann
Ignacio,
>Try this:
>
>RUN REPORT oReport ON CHANGED oReport:NewLine( Int( oReport:nLineHeight
/
>2 ) )
This is only working at the beginning of the next report row and not at every
data row and unuseable to change the distance between every data row.
>Changing the value oReport:nLineHeight did not work due an error in the
>class. Now is only calculated if its value is zero.
>
>The report engine calculates the height necessary to print the complete
data
>row of all the columns, every colum may print more than one row and even
use
>different fonts on every row. So oReport:nLineHeight is just the standard
>line height based on first font defined, but is not the height of every
data
>row. For this reason I recommend to use the expression above that will
>always work, no matter how many lines are defined on every column and the
>fonts they used.
This explanation was very, very helpful. Now I could solve the problem in
this way:
1. creating a bigger (oFont1) and a smaller fontobject (oFont2)
2. creatng the Report with .. FONT oFont1,oFont2
3. starting the Report with
RUN REPORT oReport ON INIT oReport:aFonts[1]:=oReport:aFonts[2]
Thank you very much for your help
Regards
Ingo

TReport:nLineHeight

Publicado: Mar Sep 19, 2006 5:48 am
por Ingo Junge-Herrmann
Ignacio,
>Try this:
>
>RUN REPORT oReport ON CHANGED oReport:NewLine( Int( oReport:nLineHeight
/
>2 ) )
This is only working at the beginning of the next report row and not at every
data row and unuseable to change the distance between every data row.
>Changing the value oReport:nLineHeight did not work due an error in the
>class. Now is only calculated if its value is zero.
>
>The report engine calculates the height necessary to print the complete
data
>row of all the columns, every colum may print more than one row and even
use
>different fonts on every row. So oReport:nLineHeight is just the standard
>line height based on first font defined, but is not the height of every
data
>row. For this reason I recommend to use the expression above that will
>always work, no matter how many lines are defined on every column and the
>fonts they used.
This explanation was very, very helpful. Now I could solve the problem in
this way:
1. creating a bigger (oFont1) and a smaller fontobject (oFont2)
2. creatng the Report with .. FONT oFont1,oFont2
3. starting the Report with
RUN REPORT oReport ON INIT oReport:aFonts[1]:=oReport:aFonts[2]
Thank you very much for your help
Regards
Ingo