>Thanks to you all for the information and help on VfoxPro. I am stumped using automation.
>Project: Creating a membership directory in Word from a VFP table. I am writing a record per table setting up column and row (merging rows as needed). It works great, keep the record on a page (if the table dosn't fit, it break to a new page.
>THE PROBLEM: I need to print page headers with the member group name (like VFP report grouping). How do I detect when word writes a table to a new page?
>Detect page number, or detect page break event in wordbasic?
>
>Thanks for your help
Use Information. ie:
lnOnPage = .Tables[n].Range.Information(wdActiveEndPageNumber)
Cetin