best way to get both full document and section pagenumbers ?

  • What is the best way to have documents with the following info?

    section-pagenumber 5 of 9
    full-doc-pagenumber 17 of 98

    I've found that

    17 corresponds to WPTextFieldNames[wpoPageNumber];
    98 corresponds to WPTextFieldNames[wpoNumPages];
    9 corresponds to WPTextFieldNames[wpoSectionNumPages];
    but how do I get the 5 ?
    Ad Franse