Height-Property does not change on streched Bands
Hi!
I wrote code in FastReports 2.52, that calculates in the 1. pass the sum of the Band-Heights of a streched Detail_Data Band of an 2-PassReport.
Works fine, only that if the Height of the band changes because of an WordBreak,
Fastreport always takes the original Height, e.g.:
SumOfHeights := SumOfHeights + Height; (<--- Height always return 18)
Why this behaviour?
Thanks for an answer!
I wrote code in FastReports 2.52, that calculates in the 1. pass the sum of the Band-Heights of a streched Detail_Data Band of an 2-PassReport.
Works fine, only that if the Height of the band changes because of an WordBreak,
Fastreport always takes the original Height, e.g.:
SumOfHeights := SumOfHeights + Height; (<--- Height always return 18)
Why this behaviour?
Thanks for an answer!
Comments
keep group together.
you must place code in the correct bands and in, if or if not finalpass blocks of code. and gather the correct band's height. make sure band and memos stretched property is set to true and word wrap for the memo.
regards
Gord:
which demo do you mean?
I found the demo: Non-Breaked Master sets.
My code is seems to be correct. The properties are set correct.
But the found demo does not work with streched bands.
Pehaps its a bug in Fastreports? I dont know.
Stoneking:
which property should i use instead?
Thanks for any hints
typically main demo is found in
yourdrive...\fastreports\demos\reports folder
the 2 reports are 44.frf and 47.frf
regards