Article View: adobe.scripting.indesign
Article #17010Get page number
From: David Aleu
Date: Thu, 10 Jul 2003 19:13
Date: Thu, 10 Jul 2003 19:13
19 lines
1443 bytes
1443 bytes
Hi, I'm getting crazy. I would like return page number from an
indesign document.
I use this:
myInDesign.FindPreferences = idNothing
myInDesign.ChangePreferences = idNothing
Set myParagraphStyle = myDocument.ParaStyles("PRODUCTOIndice")
myInDesign.FindPreferences.ParagraphStyle = myParagraphStyle
Set myFoundObjects = myDocument.Search 'Found 1809, correct
For Each myobjects In myFoundObjects
Set myPage = myDocument.Pages(i)
Debug.Print myobjects.TextContents
Debug.Print myPage
Next myobjects
This work it returns me the content of search but I don't know how can
I do it to get page number.
Thanks.
Technical Details
Message-ID:
<4d16e8d5.0307101113.7ccfccd2@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a6c90ef1a9205cd3,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-10 12:13:35 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: llista@terra.es (David Aleu) Newsgroups: adobe.scripting.indesign Subject: Get page number Date: 10 Jul 2003 12:13:34 -0700 Organization: http://groups.google.com/ Lines: 19 Message-ID: <4d16e8d5.0307101113.7ccfccd2@posting.google.com> NNTP-Posting-Host: 80.58.34.107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1057864415 18907 127.0.0.1 (10 Jul 2003 19:13:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Jul 2003 19:13:35 GMT