On Wed, 8 Nov 2000 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?

Use the field pageHeights property.  It gives you exactly this information.
  Regards,
    Scott

> Peter
> -- 
> --------------------------------------------------------
> Peter Reid
> Reid-IT Limited, Loughborough, Leics., UK
> Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
> E-mail: [EMAIL PROTECTED]
> Web: http://www.reidit.co.uk

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


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.

Reply via email to