all groups > inetserver asp components > november 2003 >
You're in the

inetserver asp components

group:

how to retrieve page count from word?


how to retrieve page count from word? s_m_b
11/24/2003 7:38:04 AM
inetserver asp components: 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
Re: how to retrieve page count from word? Tom Kaminski [MVP]
11/24/2003 2:18:19 PM
[quoted text, click to view]

Try this:
http://support.microsoft.com/?kbid=224351

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


Re: how to retrieve page count from word? s_m_b
11/25/2003 1:35:13 AM
"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?


[quoted text, click to view]
Re: how to retrieve page count from word? s_m_b
11/25/2003 2:42:24 AM
"s_m_b" <smb20002ns@hotmail.com> wrote in
news:Xns943E617D07F58smb2000nshotrmailcom@207.46.248.16:
ok - found it!


[quoted text, click to view]
Re: how to retrieve page count from word? Dave
12/1/2003 2:58:03 PM
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

[quoted text, click to view]
AddThis Social Bookmark Button