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?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:43PM
    do not see the attachment.
    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.
  • edited 12:43PM
    Here is the attachment.

    I have ended up using a two pass report to solve the problem.

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.