Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation with Word
Message
From
09/01/2003 13:02:10
 
 
To
09/01/2003 11:48:09
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00739840
Message ID:
00739887
Views:
11
>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
Map
View

Click here to load this message in the networking platform