Avatar of thenelson
thenelson

asked on 

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
Microsoft AccessMicrosoft OfficeMicrosoft ApplicationsVBA

Avatar of undefined
Last Comment
thenelson
Avatar of Flora Edwards
Flora Edwards
Flag of Sweden image

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
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of thenelson
thenelson

ASKER

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.
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

ActiveX cannot work as a standalone application. It must be placed on a form similarly as the webbrowser control.
Avatar of thenelson
thenelson

ASKER

Foxit software wants $2500 for their active X software which is way out of my budget.
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

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
Avatar of thenelson
thenelson

ASKER

pcelba,

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

Thanks for your suggestion!
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo