On 8/11/00 1:51 pm, Peter Reid <[EMAIL PROTECTED]> wrote:
> I have a scrolling field on screen which can take arbitrary HTML
> text. I'm printing this out across several pages by calculating the
> formattedHeight vs the available page height.
>
> Whilst this works well, I can end up with half a line appearing at
> the bottom of one page and the other half on the top of the next
> page. Ideally, I'd like to know exactly how many full lines of text
> can be accommodated in a given vertical space, then I could chop up
> the field text into page-sized chunks. However, since HTML text
> often includes text of varying height, I can't use the simple metrics
> available to do this calculation.
>
> Does anyone have any suggestions as to how to calculate an accurate
> field height for such a situation?
Check out the pageHeights property, and also the print field script in the
current mctools Print Field stack, between these they should solve the
problem?
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.