As you can hardly predict which PDF reader Internet Explorer or Edge will use to embed the PDF, you may want add a PDF reader OLEcontrol in your form instead, such as
PDFxChange viewer (royalty free, included in FoxInCloud's base classes).
Attached is the "PDFxChange viewer" object model; unfortunately, I could not find a .search() method; maybe you could inquire further.
update: weird, the screenshot is attached but does not show up on my end…
>I have a form where the user can open a PDF document and it gets displayed in the webbrowser control. Is there a way to do a search/Highlight on the open document?
>
>Or alternatively, activate the PDF reader's search dialog? Most users will have Adobe Reader set as default program, so I wonder if there is any way to access the functionality of the control that is handling the document in the browser window.
>
>Thanks for any ideas.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/Never explain, never complain (Queen Elizabeth II)