get selected text in webbrowser control  via vba

thenelson
thenelson used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Flora EdwardsMedicine

Commented:
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
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
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.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

ActiveX cannot work as a standalone application. It must be placed on a form similarly as the webbrowser control.
Foxit software wants $2500 for their active X software which is way out of my budget.
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
pcelba,

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

Thanks for your suggestion!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial