Article View: adobe.acrobat.sdk
Article #242AcroExch.AVDoc.FindText()
From: Jon_Pyne
Date: Fri, 20 Mar 2009 16:28
Date: Fri, 20 Mar 2009 16:28
19 lines
1428 bytes
1428 bytes
Hi, there
Does anyone have any experience of the FindText() function? I was hoping to use it together with acrApp.MenuItemExecute "NewBookmark" to create a set of standard bookmarks. The API documentation claims that the function "Finds the specified text, scrolls so that it is visible, and highlights it" and it returns "True if the text was found, False if it was not." From my experience, though, it always returns True, and certainly doesn't scroll to the text or highlight it. In fact, all it seems to do is insert the find text in the application's search field.
Or am I doing summit wrong?
Dim acrApp, acrAVDoc
Set acrApp = CreateObject("AcroExch.App")
Set acrAVDoc = CreateObject("AcroExch.AVDoc")
acrApp.Show
If acrAVDoc.Open(MY_FILE, "") Then
acrAVDoc.FindText MY_TEXT, False, True, True
etc...
thanks
jON
- Adobe Acrobat 6.0
- MS Office 2003
- MS Windows XP Professional SP2
Technical Details
Message-ID:
<59b85c6e.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10177e,2f91b3743d53ea47,start X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Jon_Pyne@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: AcroExch.AVDoc.FindText() Message-ID: <59b85c6e.-1@webcrossing.la2eafNXanI> Date: Fri, 20 Mar 2009 09:28:21 -0700 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit