>"It's feasible, though not easy. You actually know the size of each line, so you can put "when less than {rowheight}*alias.numberoflines". Row height can be measured in several ways, including trial and error, opening the .frx and reading the .height of the band etc, whichever serves best. Keep in mind that units in .frx are 10000ths of an inch (or 1000ths?)."
>
>When I open the .frx, the records where Objtype=9 and Objcode=3 or 5, are the group header/footer. Width=nnn.nn is the same number in Data Grouping, "Start group on new page when less than nnn.nn". How do I put a variable # into the Width field? Alias.numberoflines will be different for each account.
You can't have a variable in the height field of a report object, but you can have report-level variable, and an OnEntry function which you can use to calculate the value to store into that variable. In the "new page when less than" you put that variable.
The function you'd call from detail band's OnEntry would use Alias.numberoflines and the detail row height to calculate the size needed.