Custom Page Numbering

    • Offizieller Beitrag
    Zitat

    Im using this in my template so every page is numbered but I need the number spelled out instead of just the number. (What I need this to do is insert 'Page Two' instead of 'Page 2'.)

    Yes, this is possible. You insert the page number fields as you did before with WPRichText1.InputTextField(wpoPageNumber) - but you add an event to OnTextFieldGetText. Here you can use code like

    Julian Ziersch

  • shouldn't this line

    Code
    else Result := IntToStr(n);

    instead be

    Code
    else Result := IntToStr(n+1);

    Otherwise, without the plus one you get
    ...Nine
    Ten
    10
    11...

    But with the +1 you get
    ...Nine
    Ten
    11
    12 ...

    It still seems to count right.

    Please correct me if I'm wrong.

    It works beautifully by the way. THANK YOU

  • I'm having a problem with this all of a sudden.

    On screen, the pages get numbered properly as usual.

    But now when I print, the numbers are one higher than they should be.

    For example:

    This is while viewing the rtf

    Code
    Page  Display1        One2        Two3        Three

    But when I print it:

    Code
    Page  Display
    1        Two
    2        Three
    3        Four

    What might cause this?