get selected text in webbrowser control via vba

I an displaying a pdf file (in Foxit reader) in a webbrowser control in MS Access 2003. i would like to select some text in the file and then capture the selected text via vba. I tried SendKeys "^c" and DoCmd.RunCommand acCmdCopy. Neither worked.

Any ideas?
Thanks
LVL 39
thenelsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Flora EdwardsMedicineCommented:
If you've loaded a PDF file then you  can't use The WebBrowser,   you can however use PDF reader control instead of the WebBrowser.

please see here
pcelbaCommented:
Don't use webbrowser control but use foxit ActiveX directly on your form. Then you may call the GetSelectedText() function.
More info: http://cdn01.foxitsoftware.com/pub/foxit/manual/en_us/FoxitPDFActiveX51_Manual.pdf

Note: The text is not necessarily stored as text in PDF documents and the output can be obtained as a result of OCR which means lower accuracy...

Don't forget to register the ActiveX control: https://support.microsoft.com/en-us/kb/918574

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thenelsonAuthor Commented:
Will the foxit ActiveX allow me to open foxit in a form in Access? That is why I am using the webbrowser control. I don't want to have to switch back and forth between apps.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

pcelbaCommented:
ActiveX cannot work as a standalone application. It must be placed on a form similarly as the webbrowser control.
thenelsonAuthor Commented:
Foxit software wants $2500 for their active X software which is way out of my budget.
pcelbaCommented:
You may also look at PDF-XChange Viewer. The basic version is free and I've used it on FoxPro forms a few years ago.
http://www.tracker-software.com/product/pdf-xchange-viewer
thenelsonAuthor Commented:
pcelba,

PDF-XChange Viewer is very nice. I switched to it from  Foxit reader. I opens faster, has OCR support.

Thanks for your suggestion!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.