Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Microsoft Web Browser control to open and search text in PDF

Posted on 2014-07-20
1
Medium Priority
?
793 Views
Last Modified: 2014-07-28
Created an Access Form that contains a Microsoft Web Browser control.
The code used in the Form's On Load event is:

Private Sub Form_Load()
    Me.WebBrowser0.Navigate2 "C:\Users\AB\Desktop\Sample.pdf"
End Sub

Works fine.  Next, I want to:

In the Form's On Load event, I want to search Sample.pdf for a text string stored in a string variable.

What's the best recommended way to perform this search using code?  Know that I can use the Adobe Search toolbar.
0
Comment
Question by:clock1
1 Comment
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 40207908
There is no VBA method to do this. You'd have to use a 3rd party utility, like the Adobe SDK, to do this.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question