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!

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:06PM
    take a closer look at the mainreports demo
    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 ;)
  • edited 4:06PM
    Don't use height propery directly , such as : (band1 as TfrBandView).Height.

  • edited 4:06PM
    Thanks for the answer:

    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 ;)
  • gordkgordk St.Catherines On. Canada.
    edited 4:06PM
    Hi Georgios
    typically main demo is found in

    yourdrive...\fastreports\demos\reports folder
    the 2 reports are 44.frf and 47.frf
    regards ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.