Use Memo.TextHeight to calcuate the Pagesize

  • Hi

    how can I use Memo.TextHeight to modifiy the pagesize

    I try:

    WPRichText1.Header.PageHeight:= WPRichText1.Memo.TextHeight*FACTOR;

    How can I estaminate the Factor to calcuate the exact page size do display the Text?

    What unit are used in PageHeight?
    What unit are used in TextHeight?

    with best regards

    Nils Bödeker