Hoping someone might have done this: determine the actual number of lines used in a text field of given width, font, etc. at runtime:
Details:
I have a large text field that can have variable contents, i.e. short lines of text:
the
quick
brown
fox...
or more paragraph style text:
the quick brown fox...
I need to determine how many lines are actually generated in the output in order to handle continuation pages.
I can count number of line feeds, I can count characters, but what I need to know is how many actual lines are being used given the design's field width and font type/size rather than guess at how much space the text field needs.
The "Can Grow" format feature allows you to select a specific number of lines to allow growth, so I'm hoping there is some way to capture the number of lines the text would result?
I don't see any such functions listed in report designer.
Any easy or not-so-easy suggestions appreciated!