Skip to main content
Participating Frequently
February 27, 2008
Question

Get Page Number

  • February 27, 2008
  • 1 reply
  • 543 views
Hi

How can i get the page number of the page containg a paragraph or story

i am using the statement

myDocument.stories.item(k).paragraphs.item(i)

to go the paragraph now i wud like get the page number of the page in which the paragraph exists
This topic has been closed for replies.

1 reply

Inspiring
February 27, 2008
You need to search the parental chain until you reach a page or the application. In the latter case, the text is not on a page.

A search of the forums for "findPage" should find some code for you.

Dave