how to retrieve page count from word?

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default how to retrieve page count from word?

    I'm trying to extract the number of pages in a word 2000 document, but
    can't find either the property/method via application.word, or any other
    way of doing it.
    does the pagenumbers method get there, since it seems to refer to the
    instance of page number in the header/footer?
    s_m_b Guest

  2. Similar Questions and Discussions

    1. How to retrieve locked NEW PAGE?
      (C3) My client has a writer and a publisher. The writer created a new page (thus I cannot yet see it by logging into the site through Dreamweaver)....
    2. Getting Word Count from MS Word files
      I would like to get the word count of MS Word files. I found a CFX tag on the exchange: CFX_FileSummary, but the download page is a dead link, as...
    3. Word Count
      Is there a way to determine the word count in a story?
    4. placeholder text with word count embedded
      Anyone still have that old (REALLY old) placeholder text from Pagemaker that had every 25 or 50 words counted out so when you placed the text you...
    5. count word repetitions for each pair of lines
      I wonder if anyone has a script that could do the following? -Read a file containing a regular text (e.g. a news story); -Count word type...
  3. #2

    Default Re: how to retrieve page count from word?

    "s_m_b" <smb20002ns@hotmail.com> wrote in message
    news:Xns943D9F010AFEAsmb2000nshotrmailcom@207.46.2 48.16...
    > I'm trying to extract the number of pages in a word 2000 document, but
    > can't find either the property/method via application.word, or any other
    > way of doing it.
    > does the pagenumbers method get there, since it seems to refer to the
    > instance of page number in the header/footer?
    Try this:
    [url]http://support.microsoft.com/?kbid=224351[/url]

    --
    Tom Kaminski IIS MVP
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]



    Tom Kaminski [MVP] Guest

  4. #3

    Default Re: how to retrieve page count from word?

    "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in news:bptlb1
    $ej86@kcweb01.netnews.att.com:
    Thanks Tom - but what's the syntax for its' create.object?

    > "s_m_b" <smb20002ns@hotmail.com> wrote in message
    > news:Xns943D9F010AFEAsmb2000nshotrmailcom@207.46.2 48.16...
    >> I'm trying to extract the number of pages in a word 2000 document, but
    >> can't find either the property/method via application.word, or any other
    >> way of doing it.
    >> does the pagenumbers method get there, since it seems to refer to the
    >> instance of page number in the header/footer?
    >
    > Try this:
    > [url]http://support.microsoft.com/?kbid=224351[/url]
    >
    s_m_b Guest

  5. #4

    Default Re: how to retrieve page count from word?

    "s_m_b" <smb20002ns@hotmail.com> wrote in
    news:Xns943E617D07F58smb2000nshotrmailcom@207.46.2 48.16:
    ok - found it!

    > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in
    > news:bptlb1 $ej86@kcweb01.netnews.att.com:
    > Thanks Tom - but what's the syntax for its' create.object?
    >
    >
    >> "s_m_b" <smb20002ns@hotmail.com> wrote in message
    >> news:Xns943D9F010AFEAsmb2000nshotrmailcom@207.46.2 48.16...
    >>> I'm trying to extract the number of pages in a word 2000 document,
    >>> but can't find either the property/method via application.word, or
    >>> any other way of doing it.
    >>> does the pagenumbers method get there, since it seems to refer to
    >>> the instance of page number in the header/footer?
    >>
    >> Try this:
    >> [url]http://support.microsoft.com/?kbid=224351[/url]
    >>
    >
    >
    s_m_b Guest

  6. #5

    Default Re: how to retrieve page count from word?

    I have used to following to get the number of pages in a
    Word document:

    ' wdActiveEndAdjustedPageNumber = 1

    Word.ActiveDocument.Range.Information
    (wdActiveEndAdjustedPageNumber)

    This will give the logical last page number (i.e. if you
    have three pages in an intro section these may not go to
    the final page count). To get the final page count use
    wdActiveEndPageNumber ( = 3).

    I hope this is what you're after.

    Dave
    >-----Original Message-----
    >"s_m_b" <smb20002ns@hotmail.com> wrote in message
    >news:Xns943D9F010AFEAsmb2000nshotrmailcom@207.46. 248.16...
    >> I'm trying to extract the number of pages in a word
    2000 document, but
    >> can't find either the property/method via
    application.word, or any other
    >> way of doing it.
    >> does the pagenumbers method get there, since it seems
    to refer to the
    >> instance of page number in the header/footer?
    >
    >Try this:
    >[url]http://support.microsoft.com/?kbid=224351[/url]
    >
    >--
    >Tom Kaminski IIS MVP
    >[url]http://www.iistoolshed.com/[/url] - tools, scripts, and
    utilities for running IIS
    >[url]http://mvp.support.microsoft.com/[/url]
    >[url]http://www.microsoft.com/windowsserver2003/community/cente[/url]
    rs/iis/
    >
    >
    >
    >.
    >
    Dave Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139