General information
Category:
COM/DCOM and OLE Automation
>All,
>
> Two questions about Automation with Word.
>1. How do I determine which page of the document I am on?
>
This is tricky in Word because it doesn't really pay attention to pages until it needs to. However, you can use the Information method of the Range object. If oRange is a defined range, then this expression gives you the last page of the range:
#DEFINE wdActiveEndPageNumber 3
nLastPage = oRange.Information( wdActiveEndPageNumber )
There's other information available that way, too.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only