Numbering Rows with Streched Content
I am trialing FastReport 4.0 with Delphi 7 and Delphi XE2. As part of the reports produced, we require that each row on a page is numbered, with the numbers restarting for each page.
I found a previous post on this forum that provided advice for doing this.
Unfortunately, if an item is stretched, causing it to move to a new page where it wouldn't have had to do so if it wasn't stretched, causes the item to print with the last number from the previous page, rather than starting with 1.
I have attached a sample Delphi 7 project which demonstrates the issue.
Does anyone know how I can ensure that the number used for the item is updated when it is moved to a new page due to stretching?
I found a previous post on this forum that provided advice for doing this.
Unfortunately, if an item is stretched, causing it to move to a new page where it wouldn't have had to do so if it wasn't stretched, causes the item to print with the last number from the previous page, rather than starting with 1.
I have attached a sample Delphi 7 project which demonstrates the issue.
Does anyone know how I can ensure that the number used for the item is updated when it is moved to a new page due to stretching?
Comments
try this do not use line or line# variable use your own variable
and write code write code in the obp event and oap events of the band containing the memo.
you may have to make the report a 2 pass report to determine the band's /memo's height on the first pass and then compare it against the engines freespace in the second pass and modify the variables value if the height is greater then the freespace.
I have ended up using a two pass report to solve the problem.